title: Load fixtures one time before all phpunit test on symfony 3
body: <p>I ve got a SF3 application and lot of functionnals tests.
  Before each tests we load and purge all fixtures.
  Time of all tests are so long. 
  I would like to load fixtures just one time et truncate after last test.</p>
  
  <p>Is it the good method to improve functionnal tests speed ?</p>
  
  <p>Is there a php method in phpunit which is launched just one time before all tests ? (Because setUpBeforeClass is executed before each test)</p>
  
  <p>An exemple of the setUpBeforeClass method in my test's classes. </p>
  
  <pre><code>class SearchRegisterControllerTest extends WebTestCase
  {
      /** @var Client $client */
      private $client;
  
      protected static $application;
  
      public static function setUpBeforeClass()
      {
          $kernel = static::createKernel();
          $kernel-&gt;boot();
  
          $em = $kernel-&gt;getContainer()-&gt;get('doctrine.orm.entity_manager');
          $schemaTool = new SchemaTool($em);
          $metadata = $em-&gt;getMetadataFactory()-&gt;getAllMetadata();
  
          $schemaTool-&gt;dropSchema($metadata);
          $schemaTool-&gt;createSchema($metadata);
  
          /** @var Client $client */
          $client = static::createClient();
          $em = $client-&gt;getContainer()-&gt;get('doctrine.orm.entity_manager');
  
          $loader = new Loader();
  
          $loader-&gt;loadFromDirectory('src/MyNameSpace/AppBundle/DataFixtures/ORM');
  
          $purger = new ORMPurger();
          $executor = new ORMExecutor($em, $purger);
          $executor-&gt;execute($loader-&gt;getFixtures(), true);
  
      }
  </code></pre>
  
  <p>Thanks in advance.</p>