Expanded class hierarchy of RedisCacheTest
class RedisCacheTest extends CacheTest {
private $_redis;
public function setUp() {
if (extension_loaded('redis')) {
$this->_redis = new \Redis();
$ok = @$this->_redis
->connect('127.0.0.1');
if (!$ok) {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
}
}
else {
$this
->markTestSkipped('The ' . __CLASS__ . ' requires the use of redis');
}
}
protected function _getCacheDriver() {
$driver = new RedisCache();
$driver
->setRedis($this->_redis);
return $driver;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | @group DCOM-43 | 4 |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | 1 | |
RedisCacheTest:: |
private | property | ||
RedisCacheTest:: |
public | function | ||
RedisCacheTest:: |
protected | function |
Overrides CacheTest:: |