class RedisCacheTest in Plug 7
Hierarchy
- class \Doctrine\Tests\Common\Cache\CacheTest extends \Doctrine\Tests\DoctrineTestCase
- class \Doctrine\Tests\Common\Cache\RedisCacheTest
Expanded class hierarchy of RedisCacheTest
File
- lib/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ RedisCacheTest.php, line 7
Namespace
Doctrine\Tests\Common\CacheView source
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;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheTest:: |
public | function | The following values get converted to FALSE if you cast them to a boolean. | |
CacheTest:: |
protected | function | Return whether multiple cache providers share the same storage. | 3 |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | @dataProvider provideCrudValues | |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | Check to see that, even if the user saves a value that can be interpreted as false, the cache adapter will still recognize its existence there. | 2 |
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | ||
CacheTest:: |
public | function | @group DCOM-43 | 8 |
CacheTest:: |
public | function | ||
RedisCacheTest:: |
private | property | ||
RedisCacheTest:: |
public | function | ||
RedisCacheTest:: |
protected | function |
Overrides CacheTest:: |