I am encountering an error calling PHPUnit within NetBeans. Netbeans use the command line below to launch tests :
"C:\phpqa\bin\phpunit.bat" "--colors" "--log-junit" "C:\Users\Me\AppData\Local\Tempnb-phpunit-log.xml" "--configuration" "C:\Applications\vhosts\MyProjecttests\configuration.xml" "C:\Program Files\NetBeans 8.0\php\phpunit\NetBeansSuite.php" "--run=C:\Applications\vhosts\MyProject\trunktests\unitTests"
This one give me this result:
PHPUnit 4.8.18 by Sebastian Bergmann and contributors.
unrecognized option --run
I think that this pull request on the file phpunit/src/Util/Getopt.php has changed the way PHPUnit understand this command line. As you can see, NetBeans use _--run_ param to call NetBeansSuite.php.
--run has never been an option supported by PHPUnit. Please report this with the vendor of your IDE.
Yes, of course, it's a Netbeans param as I mention, used by the IDE to specify the test files to call.
But before the change (see pull request i've pasted), --run wasn't parsed has optional option by PHPUnit, and the given command line worked well, but now PHPUnit parse it and throw an error.
I've choosen to post the issue here because the change come from PHPUnit.
But if I'm wrong, sorry for the inconveniance.
Most helpful comment
--runhas never been an option supported by PHPUnit. Please report this with the vendor of your IDE.