When I create a controller with following through Zend_Tool
command:
create controller NameController
… netbeans creates a new controller successfully. BUT, it sends a message in the output window:
PHPUnit is required in order to generate controller test stubs.
How do I get Netbeans to automatically create a class with phpunit testing? I searched the net and thousands solutions so far not able to solve …
Important Notes:
- Have already installed the pear
- Already installed phpunit
- Already included ‘phpunit’ in the include_path
- Has created a file and includes zf.ini too in the include_path
- Options already configured netbeans, where I informed the directory phpunit.bat.
Is it a bug in NetBeans?
See:





I found a solution.
In c:/user/you profile user/.zf.ini, the config file was like this:
php.include_path = ".C:/wamp/bin/php/php5.3.8/pear/PHPUnit;C:/Program Files/NetBeans 7.1/php/zend;C:/wamp/apps/ZendFramework/library"basicloader.classes.0 = "NetBeansCommandsProvider"
I took the php.include_path, leaving the file as follows:
basicloader.classes.0 = "NetBeansCommandsProvider"Well .. this is crazy and did not understand because it worked well for me.
NOTE: Please note that settings should already be set include_path in php.ini in the C:\wamp\bin\php\php5.3.8 and C:\wamp\bin\apache\Apache2.2.21\bin
Thanks to all!