예제 #1
0
 protected function setUp()
 {
     if (!self::$supported) {
         $this->markTestSkipped('Redis is not running.');
     }
     parent::setUp();
 }
 protected function tearDown()
 {
     if (!self::$supported) {
         return;
     }
     parent::tearDown();
     $this->client->dropDatabase(self::DATABASE_NAME);
 }
예제 #3
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     $connection = DriverManager::getConnection(array('driver' => 'pdo_sqlite', 'memory' => true));
     $schemaManager = $connection->getSchemaManager();
     $schema = $schemaManager->createSchema();
     self::$dbalStore = new DbalStore($connection, 'store');
     if (!$schema->hasTable(self::$dbalStore->getTableName())) {
         $schemaManager->createTable(self::$dbalStore->getTableForCreate());
     }
 }