title: Symfony - "framework.test" config is not set to true
body: <p>Using Symfony 5.2 and PhpUnit last version, I have this error with my functional test</p>
  <pre><code>LogicException: You cannot create the client used in functional tests if the &quot;framework.test&quot; config is not set to true.
  </code></pre>
  <p>Content of <code>config/packages/test/framework.yaml</code> :</p>
  <pre><code>framework:
      test: true
      session:
          storage_id: session.storage.mock_file
  </code></pre>
  <p>PHP part of my <code>phpunit.xml.dist</code> :</p>
  <pre><code>&lt;php&gt;
      &lt;ini name=&quot;error_reporting&quot; value=&quot;-1&quot;/&gt;
      &lt;server name=&quot;APP_ENV&quot; value=&quot;test&quot; force=&quot;true&quot;/&gt;
      &lt;server name=&quot;SHELL_VERBOSITY&quot; value=&quot;-1&quot;/&gt;
      &lt;env name=&quot;BOOTSTRAP_CLEAR_CACHE_ENV&quot; value=&quot;test&quot;/&gt;
  &lt;/php&gt;
  </code></pre>
  <p>Here is the content of my Test :</p>
  <pre><code>class JWTTokenAuthenticatorTest extends WebTestCase
  {
      public function test_authentication_token()
      {
          $client = static::createClient();
          $client-&gt;request(
              'POST',
              '/authentication_token',
              [],
              [],
              ['CONTENT_TYPE' =&gt; 'application/json'],
              '{&quot;email&quot;:&quot;api@api.com&quot;,&quot;password&quot;:&quot;api&quot;}'
          );
  
          $this-&gt;assertResponseIsSuccessful();
          $this-&gt;assertMatchesRegularExpression('/{&quot;token&quot;:&quot;(.*)&quot;}/i', $client-&gt;getResponse()-&gt;getContent());
      }
  }
  </code></pre>
  <p>I have only default bootstrap.php file, I can't understand this error since the APP_ENV is well set to &quot;test&quot;.</p>
  <p>I tried to clear the cache.</p>
  <p>When I dump <code>dd($_ENV['APP_ENV']);</code>, I have <code>dev</code>, I can't understand why.</p>