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); }
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()); } }