Running bin/phpunit ignores following environment variables set in phpunit.xml.dist and .env.test files:
SYMFONY_PHPUNIT_VERSION
SYMFONY_PHPUNIT_REMOVE
This is related to #476, has been fixed by #481 but came back after #491.
Steps to reproduce:
Add the following line:
<env name="SYMFONY_PHPUNIT_VERSION" value="7.5" />
in phpunit.xml.dist's <php> section.
Running vendor/bin/simple-phpunit - executes PHPUnit 7.5 ✅
Running bin/phpunit - ignores the setting and executes PHPUnit 6.5 ⚠️
This is caused by following change: https://github.com/symfony/recipes/pull/491/files#diff-bbc808450c0f3f12f5cec14fc21afc94R9