title: How to properly change testing environment vars - Codeception and Laravel 5.1
body: <p>I am trying to use a sqlite db for testing purposes, as I don't want to touch my actual database:</p>
  
  <p>In my unit.suite.yml file:</p>
  
  <pre><code>class_name: UnitTester
  modules:
      enabled: [Asserts, UnitHelper]
      config:
          Db:
              dsn: 'sqlite:app/tests/_data/testdb.sqlite'
              user: ''
              password: ''
              dump: app/tests/_data/dump.sql
  </code></pre>
  
  <p>In my TestCase.php file I have a function which resets and migrates and seeds the db for testing:</p>
  
  <pre><code>        Artisan::call('migrate:reset');
          Artisan::call('migrate');
          Artisan::call('db:seed');
  </code></pre>
  
  <p>I also added the sqlite settings to app/config/testing/database.php:</p>
  
  <pre><code>&lt;?php
  // Codeception testing environment uses SQLITE
  
  return [
  
      'default' =&gt; 'sqlite',
  
      'connections' =&gt; [
          'sqlite' =&gt; [
              'driver' =&gt; 'sqlite',
              'database' =&gt; 'app/tests/_data/testdb.sqlite',
              'prefix' =&gt; ''
          ],
      ]
  ];
  </code></pre>
  
  <p>I can verify that the database.php file is being read but something still prevents sqlite from being used, and I still end up hosing my REAL database (MySQL). How do I force Laravel/Codeception to use my test db?</p>