The path passed to --log-events-text
or --log-events-verbose-text
must be absolute
#5608
Labels
--log-events-text
or --log-events-verbose-text
must be absolute
#5608
Summary
When executing PHPUnit with
--log-events-text
or--log-events-verbose-text
, the configured path may not be absolute. In this case, if a test changes the working directory, the output file may inadvertently change.Current behavior
In Box:
How to reproduce
composer install
php -dphar.readonly=1 vendor/bin/phpunit --testsuite=Tests --colors=always tests/Console/Command --log-events-text=$(pwd)/dist/log-phpunit
Expected behavior
The path pased, e.g.
dist/log-phpunit
, should probably be evaluated as$(pwd)/dist/log-phpunit
before any test is executed so that it may not change due to a test/extension changing the working directory in a weird place.The text was updated successfully, but these errors were encountered: