netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Junichi Yamamoto (JIRA)" <>
Subject [jira] [Commented] (NETBEANS-2573) PHPUNIT update breaks running single test
Date Tue, 21 May 2019 04:46:00 GMT


Junichi Yamamoto commented on NETBEANS-2573:

Thank you for reporting.

[~tmysik] Could you please have a look at this if possible?

> PHPUNIT update breaks running single test
> -----------------------------------------
>                 Key: NETBEANS-2573
>                 URL:
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - PHPUnit
>    Affects Versions: 11.0
>         Environment: Netbeans 11.0, PHP 7.3
>            Reporter: Alan Langford
>            Priority: Major
>              Labels: easyfix
> When running a single test file and PHPUnit installed via composer, Netbeans generates
a command line of this general form:
> php.exe "\{project}\vendor\phpunit\phpunit\phpunit" "--colors" "log-junit" "\{temp}\nb-phpunit-log.xml"
"configuration" "\{project}\phpunit.xml" "coverage-clover" "\{temp}\nb-phpunit-coverage.xml"
"C:\Program Files\netbeans 11\php\phpunit\NetBeansSuite.php" "--" "–run=\{project}\tests\SomeTest.php"
> The "–" argument used to fool PHPUnit. PHPUnit would strip the dashes and pass a empty
string for the name of the test file.
> NetBeansSuite.php would then extract the --run=argument and run the test.
> The latest master for PHPUnit (a79e18fe27) has changed the way command lines are parsed;
the "–" is discarded. PHPUnit then reports an error:
> Cannot open file "–run=\{project}\tests\SomeTest.php"
> I believe passing
> NetBeansSuite "C:\Program Files\netbeans 11\php\phpunit\NetBeansSuite.php"
> instead of
> "C:\Program Files\netbeans 11\php\phpunit\NetBeansSuite.php" "–"
> Will resolve the problem.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

View raw message