title: testing in Laravel 5.5 : Class env does not exist
body: <p>i am starting tests in laravel</p>
  
  <p>i created a ".env.testing" file with this</p>
  
  <pre><code>APP_NAME=myApp
  APP_ENV=testing
  APP_DEBUG=true
  APP_LOG_LEVEL=debug
  APP_URL=http://myApp.localhost
  
  DB_CONNECTION=sqlite_testing
  </code></pre>
  
  <p>i added this in the "connections" part of config/database.php file</p>
  
  <pre><code>...
  'sqlite_testing' =&gt; [
      'driver'   =&gt; 'sqlite',
      'database' =&gt; ':memory:',
      'prefix'   =&gt; '',
  ],
  ...
  </code></pre>
  
  <p>in the phpunit.xml file, i added :</p>
  
  <pre><code>&lt;env name="DB_CONNECTION" value="sqlite_testing" /&gt;
  </code></pre>
  
  <p>and i created a UserTest feature :</p>
  
  <pre><code>class UserTest extends TestCase
  {
  
      public function setUp()
      {
          parent::setUp();
          Artisan::call('migrate');
          Artisan::call('db:seed');
      }
  
      public function tearDown()
      {
          parent::tearDown();
          Artisan::call('migrate:reset');
      }
  
  
      public function testCanAccessUserSpace()
      {
          $user = factory(User::class)-&gt;create();
  
          $response = $this-&gt;actingAs($user)
              -&gt;get('/home');
  
  
          $response-&gt;assertStatus(200);
      }
  }
  </code></pre>
  
  <p>But when i run the tests, i have this :</p>
  
  <pre><code>ReflectionException: Class env does not exist
  </code></pre>
  
  <p>What's wrong with my config ?</p>
  
  <p>thanks</p>