It is not working for me - nevertheless which version I use:
Version: v1.42.14408
WSL with Ubuntu.
I've created sample project based on Symfony 6.4 (I can provide sample project if needed).
Part of phpunit.xml.dist:
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
Scenario 1 (single test run)
Running tests ...
> "/usr/bin/php8.1" -d display_errors=on "/home/wojtek/tmp/playground-unit-tests/bin/phpunit" -c phpunit.xml.dist --teamcity --colors=never --filter (^(App.Tests.PlaygroundServiceTest::test_multiply(\s.*)?)$)
Process #12052 closed with exit code 2.
Scenario 2 (run all tests for a single class)
Running tests ...
> "/usr/bin/php8.1" -d display_errors=on "/home/wojtek/tmp/playground-unit-tests/bin/phpunit" -c phpunit.xml.dist --teamcity --colors=never --filter (^(App.Tests.PlaygroundServiceTest::.+(\s.*)?)$)
Process #12237 closed with exit code 2.
Scenario 3 (running whole test suite)
Running tests ...
> "/usr/bin/php8.1" -d display_errors=on "/home/wojtek/tmp/playground-unit-tests/bin/phpunit" -c phpunit.xml.dist --teamcity --colors=never --testsuite Project Test Suite
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
Cannot open file "Test".
Process #12344 closed with exit code 1.
Scenario 4 (running tests from the console)
wojtek@OC-PF26DQ96:~/tmp/playground-unit-tests$ php bin/phpunit
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
Testing
. 1 / 1 (100%)
Time: 00:00.159, Memory: 8.00 MB
OK (1 test, 1 assertion)
When I dongrade version to v1.42.14401 results are:
Scenario 1 - (one test selected)
Running tests ...
> /usr/bin/php8.1 -d display_errors=on "/home/wojtek/tmp/playground-unit-tests/bin/phpunit" -c phpunit.xml.dist --teamcity --colors=never --filter "/^(App\\Tests\\PlaygroundServiceTest::test_multiply(\s.*)?)$/"
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
No tests executed!
Process #13767 closed with exit code 0.
````
Scenario 2 (running whole test suite)
Running tests ...
/usr/bin/php8.1 -d display_errors=on "/home/wojtek/tmp/playground-unit-tests/bin/phpunit" -c phpunit.xml.dist --teamcity --colors=never --testsuite Project Test Suite
PHPUnit 9.6.15 by Sebastian Bergmann and contributors.
Cannot open file "Test".
Process #13845 closed with exit code 1.
Downgrading to version: v1.41.14263 fixes issues.