In Windows 7, Netbeans + PHPUnit is used to build a PHP unit test and development environment and PHPUn.

Source: Internet
Author: User
Tags netbeans
I recently read PHPApplicationDevelopmentwithNetBeansBeginnersGuide. To debug the sample code in this book, I used Netbeans and PHPUnit to build a unit test and development environment. The detailed setup process is as follows: 1. install Netbeans7.2 from www. netbeans. infodownloadsdev. php downloads netbeans and recently reads the PHP Application Development with NetBeans Beginner's Guide. To debug the sample code in the book, Netbeans and PHPUnit are used to build a unit test and Development environment, the detailed setup process is as follows:

1. Install Netbeans7.2

Download the netbeans installer, select "7.2" for "NetBeans Version", select "Release" for "Build Type", and use the downloaded installation package to install it as prompted.

2. Install xampp1.7.7

For the installation process, refer to the online installation tutorial or follow the prompts to install.

3. Configure Netbeans

Run Netbeans, open the Options menu item in the Tools menu, and set the following two items:

4. Install PHPUnit3.6.10

Pear upgrade pear

Pear config-set auto_discover 1

Pear install phpunit/File_Iterator-1.3.0

Pear install phpunit/Text_Template-1.1.1
Pear install phpunit/PHP_Timer-1.0.1
Pear install phpunit/PHP_TokenStream-1.1.0
Pear install phpunit/PHP_CodeCoverage-1.1.0
Pear install phpunit/PHPUnit_MockObject-1.1.0
Pear install phpunit/PHPUnit-3.6.10
Pear install phpunit/PHPUnit_Selenium-1.2.6

5. The PHPUnit-Code-Coverage Code Coverage rate is 0.

This is a Bug in Netbeans, as long as the PHP project and Netbeans are on the same disk.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.