3 namespace Doctrine\Tests\Common\Cache;
5 use Doctrine\Common\Cache\RedisCache;
7 class RedisCacheTest extends CacheTest
11 public function setUp()
13 if (extension_loaded('redis')) {
14 $this->_redis = new \Redis();
15 $ok = @$this->_redis->connect('127.0.0.1');
17 $this->markTestSkipped('The ' . __CLASS__ .' requires the use of redis');
20 $this->markTestSkipped('The ' . __CLASS__ .' requires the use of redis');
24 protected function _getCacheDriver()
26 $driver = new RedisCache();
27 $driver->setRedis($this->_redis);