Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Netbeans with phpunit not finding skeleton generator

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?

like image 675
rastemoh Avatar asked Nov 28 '12 07:11

rastemoh


2 Answers

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

like image 138
rastemoh Avatar answered Sep 27 '22 18:09

rastemoh


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

like image 26
rizon Avatar answered Sep 27 '22 16:09

rizon