Integrating Netbeans with phpunit not finding skel

2019-06-17 04:27发布

问题:

I have netbeans 7.1.2 and installed phpunit and skeleton generator the same as told in documentation. In netbeans options, in tab of phpunit there is no field for adding skeleton generator script and when trying to generate the tests a warning is shown saying that tests where not generated. see the console. in the console is written:

PHPUnit 3.7.9 by Sebastian Bergmann.

unrecognized option --skeleton-test

is there anyway to tell netbeans where is the skeleton script?

回答1:

The problem is just for the version of netbeans. install the netbeans 7.2.1 and everything would be ok.



回答2:

Try this for MAMP

sudo /Applications/MAMP/bin/php/php5.4.4/bin/pear install phpunit/DbUnit phpunit/PHPUnit_Selenium phpunit/PHPUnit_SkeletonGenerator phpunit/PHPUnit_Story

PHPUnit_SkeletonGenerator-1.2.0 gets installed in /Applications/MAMP/bin/php/php5.4.4/bin/ then select the phpunit-skelgen in netbeans