symfony: max[self]=0 in PHPUnitBridge also fails on external deprecated services
Symfony version(s) affected: 4.3.5, probably more
Description
I’ve been trying to use the PHPUnit Bridge to avoid using code, that we have deprecated on our own. So only my own deprecated classes should make the tests fail, but not if I am using a deprecated Symfony class. As far as I understand I would say that this is describes as internal deprecations in the docs.
However, when I am executing the tests, I also receive a message like this in the “Remeinaing self deprecations section”:
The "templating.locator" service is deprecated since Symfony 4.3 and will be removed in 5.0.
I guess that is not the way it is supposed to work? 🤔
How to reproduce
I am using a config like this:
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="./vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="components">
<directory suffix="Test.php">./src/Sulu/Component/*/Tests</directory>
</testsuite>
</testsuites>
<!-- Code coverage filter -->
<filter>
<whitelist>
<directory>./src/Sulu/Component/</directory>
<exclude>
<directory>./tests</directory>
<directory>./vendor</directory>
<directory>./*/Tests</directory>
</exclude>
</whitelist>
</filter>
<php>
<env name="SYMFONY_PHPUNIT_VERSION" value="8.0"/>
<env name="APP_ENV" value="test"/>
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=0"/>
</php>
</phpunit>
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 18 (8 by maintainers)
Hey Carson, not stalled… just no time to work on it. Good bot.
@carsonbot I think the bug is still relevant, but there hasn’t been a workaround yet.