1

I'm trying PHPUnit to work on my Netbeans 8.0.2. I'm using Ubuntu 14.04 LTS.

I followed this documentation: https://netbeans.org/kb/docs/php/phpunit.html

I've installed phpunit and it's skeleton generator, and followed through till step 5. But when I'm trying to test it, the test won't run. It always says "No tests executed." "Perhaps error ocurred, verify in Output Window." I've checked the output window and it shows this:

"/usr/bin/php" "/usr/local/bin/phpunit" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "/usr/local/netbeans-8.0.2/php/phpunit/NetBeansSuite.php" "--run=/var/www/html/calculator/tests/calculatorTest.php"
PHPUnit 4.8.5 by Sebastian Bergmann and contributors.

unrecognized option --run
Done.

Do I miss something?

2
  • It's telling you what the problem is, --run is not a valid option. Commented Aug 23, 2015 at 16:30
  • Then, what should I do? if --run is not a valid option then what should I use? Commented Aug 24, 2015 at 1:43

2 Answers 2

2

Go back to PHPUnit 4.7, if you can.

Sign up to request clarification or add additional context in comments.

Comments

1

It seems that this is a problem in NetBeans 8.0.2. I found two bugs in their Bugzilla system related to the --run parameter.

It has been fixed, but is only available in the nightly builds, since 8.0.2 is the most current release.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.