This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There is an incompatibility between C:\Program Files\NetBeans 8.0.2\php\phpunit\NetBeansSuite.php and the latest version of PHPUnit, v4.8.3. The error 'unrecognized option --run' is being thrown by the phpunit.phar due to this incompatibility. "PHPUnit 4.8.3 by Sebastian Bergmann and contributors. unrecognized option --run Done." NetBeansSuite.php is not even being executed. After talking to the main developer, '--run' command has never been supported by PHPUnit. Because of this incompatibility, PHPUnit v4.8.x will not work from NetBeans v8.0.2
Same on Netbeans 8.1 Beta
I have also seen this issue using PHP Unit 4.8.3 and Netbeans 8.0.2
Same problem phpunit 4.7.7 works tho
Apparently a regression/wrong check of PHPUnit. We run NB test suite and pass --run parameter to it, not to PHPUnit: "/usr/bin/php" "/home/gapon/NetBeansProjects/Calculator-PHPUnit7/vendor/bin/phpunit" "--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--coverage-clover" "/tmp/nb-phpunit-coverage.xml" "/opt/netbeans-dev/php/phpunit/NetBeansSuite.php" "--run=/home/gapon/NetBeansProjects/Calculator-PHPUnit7/test" Will try to change (work around) it. Is there a bug submitted against PHPUnit? I would be really curious *how* to pass parameters to your suite file... Thanks.
(In reply to Tomas Mysik from comment #4) > I would be really curious *how* to pass parameters to your suite file... Found it, it should be working again. Please verify if possible. Thanks for reporting. http://hg.netbeans.org/web-main/rev/4bac9677cf11
*** Bug 254221 has been marked as a duplicate of this bug. ***
I would like to try out the fix but unfortunately I'm not sure how to do that.
Integrated into 'main-silver', will be available in build *201508180002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4bac9677cf11 User: Tomas Mysik <tmysik@netbeans.org> Log: #254276 - NetBeans v8.0.2 incompatible w/ latest PHPUnit version.
*** Bug 254462 has been marked as a duplicate of this bug. ***
(In reply to Quality Engineering from comment #8) > Integrated into 'main-silver', will be available in build *201508180002* on > http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) > > Changeset: http://hg.netbeans.org/main-silver/rev/4bac9677cf11 > User: Tomas Mysik <tmysik@netbeans.org> > Log: #254276 - NetBeans v8.0.2 incompatible w/ latest PHPUnit version. And what does that mean ?
(In reply to kimse from comment #10) > And what does that mean ? Open the URL [1] and download the development build [2] (or newer). Such build contains fix of this issue. Thanks. [1] http://bits.netbeans.org/dev/nightly/ [2] 201508180002
*** Bug 254678 has been marked as a duplicate of this bug. ***
*** Bug 255365 has been marked as a duplicate of this bug. ***
Guys on CC, could anyone please verify this issue? It means to try the development version of NetBeans and let us know if it works or not. Thanks.
Hi, I'm using NetBeans IDE Dev (Build 201508250002) and it's working fine.
Thanks a lot, marking as VERIFIED then.
*** Bug 255446 has been marked as a duplicate of this bug. ***
sorry for stupid question, I'm newbie. So We should use dev version of Netbeans? Is it save to use the latest dev version?
@sruj: Every issue has Target Milestone - it means the NetBeans version where the fix is present. In this case, it is 8.1 so it means that you can use NB 8.1 (RC available at the moment) and it should work. BTW using dev version is possible as well but these versions can be broken, of source (but usually one can use them without any problem). Thanks.
*** Bug 257396 has been marked as a duplicate of this bug. ***
*** Bug 257397 has been marked as a duplicate of this bug. ***
download the phpunit 3.7.10 hier => https://phar.phpunit.de/ worked fine
made a short script fixing this bug until fixed by netbeans https://gist.github.com/Daniel-Peder/5d21d806f3d6e989bd10c1a406e31a3f