title: Laravel - Tests on MySQL database
body: <p>I'm learning Laravel and Functional tests.
  On laracast we have in <code>phpunit.xml</code>:</p>
  
  <pre><code>&lt;php&gt;
          &lt;env name="DB_CONNECTION" value="sqlite"/&gt;
          &lt;env name="DB_DATABASE" value=":memory:"/&gt;
  &lt;/php&gt;
  </code></pre>
  
  <p>I can not test on mysql database because when I switch my <code>DB_CONNECTION</code> param to "mysql" I have error "<code>PDOException: SQLSTATE[HY000] [1049] Unknown database ':memory:'</code>".</p>
  
  <p>When I don't use memory all tables are removed from my database:
  <br/>
  My Test Class looks like that:</p>
  
  <pre><code>class ThreadsTest extends TestCase
  {
  
      use DatabaseMigrations;
  
      /** @test */
      public function a_user_can_browse_threads()
      {
          $response = $this-&gt;get('/threads');
          $response-&gt;assertStatus(200);
      }
  }
  </code></pre>
  
  <p>Does anybody know how can I test in memory with MySQL?
  I can't find any information</p>