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.