private function loadWholeFixturesFromCachedCopy()
 {
     $path = SqliteConfig::getParams()['path'];
     $backupPath = $path . '.bck';
     if (!file_exists($backupPath)) {
         $this->loadWholeFixtures();
         file_put_contents($backupPath, file_get_contents($path));
     }
     file_put_contents($path, file_get_contents($backupPath));
 }
 private function setupDatabase()
 {
     $params = SqliteConfig::getParams();
     $entityManager = EntityManagerFactory::create($params);
     $tmpConnection = DriverManager::getConnection($params);
     $tmpConnection->getSchemaManager()->createDatabase($params['path']);
     $schemaTool = new SchemaTool($entityManager);
     $schemaTool->dropDatabase();
     $metadata = $entityManager->getMetadataFactory()->getAllMetadata();
     $schemaTool->createSchema($metadata);
 }
 protected function givenSqliteDatabaseWasConnected()
 {
     $this->entityManager = EntityManagerFactory::create(SqliteConfig::getParams());
     $this->items = ItemRepository::create($this->getEntityManager());
 }