X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fcache%2Ftests%2FDoctrine%2FTests%2FCommon%2FCache%2FRedisCacheTest.php;fp=vendor%2Fdoctrine%2Fcache%2Ftests%2FDoctrine%2FTests%2FCommon%2FCache%2FRedisCacheTest.php;h=0000000000000000000000000000000000000000;hb=5e458ff8cb4924fd5fa03b80d8edfcc52fe43479;hp=5fb6a11db692359a76a08088dfdd7684a4e1c940;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php b/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php deleted file mode 100644 index 5fb6a11db..000000000 --- a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php +++ /dev/null @@ -1,59 +0,0 @@ -_redis = new \Redis(); - $ok = @$this->_redis->connect('127.0.0.1'); - if (!$ok) { - $this->markTestSkipped('Cannot connect to Redis.'); - } - } - - public function testHitMissesStatsAreProvided() - { - $cache = $this->_getCacheDriver(); - $stats = $cache->getStats(); - - $this->assertNotNull($stats[Cache::STATS_HITS]); - $this->assertNotNull($stats[Cache::STATS_MISSES]); - } - - public function testGetRedisReturnsInstanceOfRedis() - { - $this->assertInstanceOf('Redis', $this->_getCacheDriver()->getRedis()); - } - - public function testSerializerOptionWithOutIgbinaryExtension() - { - if (defined('Redis::SERIALIZER_IGBINARY') && extension_loaded('igbinary')) { - $this->markTestSkipped('Extension igbinary is loaded.'); - } - - $this->assertEquals( - \Redis::SERIALIZER_PHP, - $this->_getCacheDriver()->getRedis()->getOption(\Redis::OPT_SERIALIZER) - ); - } - - /** - * {@inheritDoc} - */ - protected function _getCacheDriver() - { - $driver = new RedisCache(); - $driver->setRedis($this->_redis); - return $driver; - } -}