Hello,
When running PHPUnit tests in a Laravel project with a different PHPUnit configuration,
e.g php artisan test --configuration phpunit.foo.xml the terminal produces a warning.
"WARN Option --configuration cannot be used more than once".
Was mentioned as a collision issue and fixed via a PR in this repo. The original fix has since been removed in commit. So the --configuration flag is passed by default, see TestCommand.
Interestingly enough the warning doesn't appear when using php artisan test -c phpunit.foo.xml. Even though -c and the --configuration is the same according to phpunit.
Reproducable steps in a new laravel project
- Create a new laravel project with phpunit
- Copy
phpunit.xml to phpunit.foo.xml or whatever *.xml
- Run
php artisan test --configuration phpunit.foo.xml
I would happy to provide a repoducable repo. Thanks in advance.
Laravel version
v12.53.0
nunomaduro/collision version
v8.9.1
Phpunit version
10.5 / 11 / 12
PHP version
8.3
Hello,
When running PHPUnit tests in a Laravel project with a different PHPUnit configuration,
e.g
php artisan test --configuration phpunit.foo.xmlthe terminal produces a warning.Was mentioned as a collision issue and fixed via a PR in this repo. The original fix has since been removed in commit. So the
--configurationflag is passed by default, see TestCommand.Interestingly enough the warning doesn't appear when using
php artisan test -c phpunit.foo.xml. Even though-cand the--configurationis the same according to phpunit.Reproducable steps in a new laravel project
phpunit.xmltophpunit.foo.xmlor whatever*.xmlphp artisan test --configuration phpunit.foo.xmlI would happy to provide a repoducable repo. Thanks in advance.
Laravel version
v12.53.0
nunomaduro/collision version
v8.9.1
Phpunit version
10.5 / 11 / 12
PHP version
8.3