You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Unit test run throws deprecation notices. I've tried to read a lot about the issue and it seems to centre around Symfony catching and displaying all deprecation notices, even those that have been silenced - the issue I'm assuming the issue is around Doctrine being split into separate components for v3.
I've read using <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/> should silence them which I have in a phpunit.xml except, the handler is still registered. Even though this key is here, during the phpunit bootstrap, false is returned for any getenv call thus forcing the registration of the deprecation handler.
Deprecated notices I received were 2x: Doctrine\Common\ClassLoader is deprecated. and 1x: Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "Symfony\Component\Routing\Annotation\Route" annotation from Symfony itself.
How to reproduce
Create phpunit.xml and put inside <env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>, with (what appears to be a basic test suite). Still trying to ascertain exactly why certain tests are causing these deprecation notices to appear.
The text was updated successfully, but these errors were encountered:
Symfony version(s) affected: 4.1.1
Description
Unit test run throws deprecation notices. I've tried to read a lot about the issue and it seems to centre around Symfony catching and displaying all deprecation notices, even those that have been silenced - the issue I'm assuming the issue is around Doctrine being split into separate components for v3.
I've read using
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
should silence them which I have in aphpunit.xml
except, the handler is still registered. Even though this key is here, during the phpunit bootstrap, false is returned for anygetenv
call thus forcing the registration of the deprecation handler.Deprecated notices I received were
2x: Doctrine\Common\ClassLoader is deprecated.
and1x: Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "Symfony\Component\Routing\Annotation\Route" annotation from Symfony itself.
How to reproduce
Create
phpunit.xml
and put inside<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
, with (what appears to be a basic test suite). Still trying to ascertain exactly why certain tests are causing these deprecation notices to appear.The text was updated successfully, but these errors were encountered: