Skip to content

Fix global state pollution between tests run with ApplicationTester #46747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

Seldaek
Copy link
Member

@Seldaek Seldaek commented Jun 23, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

If you run a test with ApplicationTester which includes -v or similar flag, then https://github.com/symfony/symfony/blob/4.4/src/Symfony/Component/Console/Application.php#L985-L989 leaves the env in a dirty state, and all tests following also use -v.

@Seldaek Seldaek requested a review from chalasr as a code owner June 23, 2022 10:22
@carsonbot carsonbot added this to the 4.4 milestone Jun 23, 2022
@fabpot
Copy link
Member

fabpot commented Jun 23, 2022

Thank you @Seldaek.

@fabpot fabpot merged commit 12c6dbf into symfony:4.4 Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants