-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
SYMFONY_DEPRECATIONS_HELPER has no affect when defined in phpunit.xml.dist. #28726
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
Comments
I'm guessing this commit is part of the issue. A solution would be to revert this commit and move the functionality to
I'd be happy to open up a PR for this, if I'm thinking in the right direction :) |
Duplicate of #28519? See there for some background at least. |
I don't think this is a duplicate of #28519. Any set value is not applied. @mark-gerarts could be on the right track… I don't see anywhere in code where the phpunit.xml is checked for |
OK, understood. There are two ways to achieve what you'd like:
|
I found this issue today after being highly surprised that in a colleague's project the I don't think the workarounds above are really acceptable for a long term solution. |
That's what I ended up doing. |
Memory played a trick on you, there was no difference between |
fixed at the recipe level in symfony/recipes#481 |
Symfony version(s) affected: 4.1.5
Description
Adding
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
tophpunit.xml.dist
has no affect.How to reproduce
Install the symfony skeleteon
Add
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" />
to phpunit.xml.dist as per the configuration docs.Create a new DeprecatedTest: https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/tests/DeprecatedTest.php
Run
php bin/phpunit
again. Deprecation notices are shown.Example Repo: https://github.com/leevigraham/symonfy-phpunit-bridge
Additional context
Screenshot of issue:
Running
SYMFONY_DEPRECATIONS_HELPER=disabled php bin/phpunit
produces expected output:// @nicolas-grekas
The text was updated successfully, but these errors were encountered: