Open ntwb opened 3 years ago
This is a known bug in Composer, although I don't have the ticket to hand. The same problem exists for any custom Composer script.
I think this can be closed as the problem is not specific to this library and the root cause is in symfony/console
. See https://github.com/composer/composer/issues/8165.
Passing options to PHPUnit doesn't always work as expected, the docs state:
Steps to reproduce:
composer server start
composer dev-tools phpunit -- --version
I expected to see the version of PHPUnit echo'd to the terminal
Instead I see the version of Composer:
Composer version 1.10.16 2020-10-24 09:55:59
I expected to see the same as when running PHPUnit directly from the
/vendor
folder:This is also reproducable with the docs example:
composer dev-tools phpunit -- --help
Running this results in:
This is the equivalent output of
composer dev-tools --help
which is the dev-tools help and not the phpunit helpAcceptance criteria: