createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml'); } static public function setUpBeforeClass() { if (!extension_loaded('redis')) { self::markTestSkipped('redis extension is not loaded'); } $config = phpbb_test_case_helpers::get_test_config(); if (isset($config['redis_host']) || isset($config['redis_port'])) { $host = isset($config['redis_host']) ? $config['redis_host'] : 'localhost'; $port = isset($config['redis_port']) ? $config['redis_port'] : 6379; self::$config = array('host' => $host, 'port' => $port); } else { $this->markTestSkipped('Test redis host/port is not specified'); } } protected function setUp() { parent::setUp(); $this->driver = new phpbb_cache_driver_redis(self::$config['host'], self::$config['port']); $this->driver->purge(); } }