<p dir="auto"><strong>Symfony version(s) affected</strong>: 4.1.5</p>
<p dir="auto"><strong>Description</strong></p>
<p dir="auto">Adding <code class="notranslate">&lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt;</code> to <code class="notranslate">phpunit.xml.dist</code> has no affect.</p>
<p dir="auto"><strong>How to reproduce</strong></p>
<p dir="auto">Install the symfony skeleteon</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="composer create-project symfony/skeleton:4.1.* bug_app
cd bug_app
composer require --dev &quot;symfony/phpunit-bridge:*&quot;
php bin/phpunit"><pre class="notranslate"><code class="notranslate">composer create-project symfony/skeleton:4.1.* bug_app
cd bug_app
composer require --dev "symfony/phpunit-bridge:*"
php bin/phpunit
</code></pre></div>
<p dir="auto">Add <code class="notranslate">&lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt;</code> to <a href="https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/phpunit.xml.dist#L18">phpunit.xml.dist</a>  as per the <a href="https://symfony.com/doc/current/components/phpunit_bridge.html#configuration" rel="nofollow">configuration docs</a>.</p>
<p dir="auto">Create a new DeprecatedTest: <a href="https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/tests/DeprecatedTest.php">https://github.com/leevigraham/symonfy-phpunit-bridge/blob/master/tests/DeprecatedTest.php</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;?php

namespace App\Tests;

use PHPUnit\Framework\TestCase;

class DeprecatedTest extends TestCase
{
    public function testDeprecatedCode()
    {
        @trigger_error('This &quot;Foo&quot; method is deprecated.', E_USER_DEPRECATED);
        @trigger_error('The second argument of the &quot;Bar&quot; method is deprecated.', E_USER_DEPRECATED);
    }
}"><pre class="notranslate"><code class="notranslate">&lt;?php

namespace App\Tests;

use PHPUnit\Framework\TestCase;

class DeprecatedTest extends TestCase
{
    public function testDeprecatedCode()
    {
        @trigger_error('This "Foo" method is deprecated.', E_USER_DEPRECATED);
        @trigger_error('The second argument of the "Bar" method is deprecated.', E_USER_DEPRECATED);
    }
}
</code></pre></div>
<p dir="auto">Run <code class="notranslate">php bin/phpunit</code> again. Deprecation notices are shown.</p>
<p dir="auto">Example Repo: <a href="https://github.com/leevigraham/symonfy-phpunit-bridge">https://github.com/leevigraham/symonfy-phpunit-bridge</a></p>
<p dir="auto"><strong>Additional context</strong></p>
<p dir="auto">Screenshot of issue:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25124/46473665-3fd37280-c824-11e8-8bff-ec6daa220da0.png"><img src="https://user-images.githubusercontent.com/25124/46473665-3fd37280-c824-11e8-8bff-ec6daa220da0.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Running <code class="notranslate">SYMFONY_DEPRECATIONS_HELPER=disabled php bin/phpunit</code> produces expected output:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25124/46473893-de5fd380-c824-11e8-9b58-d33b297e430a.png"><img src="https://user-images.githubusercontent.com/25124/46473893-de5fd380-c824-11e8-9b58-d33b297e430a.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">// <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nicolas-grekas/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nicolas-grekas">@nicolas-grekas</a></p>
<p dir="auto"><strong>Symfony version(s) affected</strong>: all ?</p>
<p dir="auto"><strong>Description</strong><br>
phpunit-bridge ignores the value "disabled" for the environment variable SYMFONY_DEPRECATIONS_HELPER when set in phpunit.xml. The value "weak" works as expected.<br>
Also, setting this environment variable in the shell works as expected.</p>
<p dir="auto">Tested with phpunit-bridge-4.1.4</p>
<p dir="auto"><strong>How to reproduce</strong><br>
set in phpunit.xml</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;php&gt;
  &lt;env name=&quot;SYMFONY_DEPRECATIONS_HELPER&quot; value=&quot;disabled&quot; /&gt;
&lt;/php&gt;"><pre class="notranslate"><code class="notranslate">&lt;php&gt;
  &lt;env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled" /&gt;
&lt;/php&gt;
</code></pre></div>
<p dir="auto">and run a test which will cause a deprecation warning.</p>