You are here

protected function RedisCacheTest::_getCacheDriver in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php \Doctrine\Tests\Common\Cache\RedisCacheTest::_getCacheDriver()

Return value

\Doctrine\Common\Cache\CacheProvider

Overrides CacheTest::_getCacheDriver

1 call to RedisCacheTest::_getCacheDriver()
RedisCacheTest::testHitMissesStatsAreProvided in vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/RedisCacheTest.php, line 34

Class

RedisCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

protected function _getCacheDriver() {
  $driver = new RedisCache();
  $driver
    ->setRedis($this->_redis);
  return $driver;
}