Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[symfony/phpunit-bridge] bin/phpunit overwrites SYMFONY_PHPUNIT_VERSION #577

@IonBazan

Description

@IonBazan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions