Integrating Netbeans with phpunit not finding skel

2019-06-17 04:21发布

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?

2条回答
爷的心禁止访问
2楼-- · 2019-06-17 05:04

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

查看更多
Viruses.
3楼-- · 2019-06-17 05:04

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

查看更多
登录 后发表回答