Ejemplo n.º 1
0
 public static function setupBeforeClass()
 {
     if (!extension_loaded('pdo_sqlite')) {
         throw new \PHPUnit_Framework_SkippedTestError('Extension pdo_sqlite required.');
     }
     self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
     $pool = new PdoAdapter(DriverManager::getConnection(array('driver' => 'pdo_sqlite', 'path' => self::$dbFile)));
     $pool->createTable();
 }
Ejemplo n.º 2
0
 public static function setupBeforeClass()
 {
     if (!extension_loaded('pdo_sqlite')) {
         throw new \PHPUnit_Framework_SkippedTestError('Extension pdo_sqlite required.');
     }
     self::$dbFile = tempnam(sys_get_temp_dir(), 'sf_sqlite_cache');
     $pool = new PdoAdapter('sqlite:' . self::$dbFile);
     $pool->createTable();
 }