You are here

protected function MemcachedCacheTest::_getCacheDriver in Plug 7

Return value

\Doctrine\Common\Cache\CacheProvider

Overrides CacheTest::_getCacheDriver

2 calls to MemcachedCacheTest::_getCacheDriver()
MemcachedCacheTest::testLongLifetime in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php
MemcachedCacheTest::testNoExpire in lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php, line 50

Class

MemcachedCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

protected function _getCacheDriver() {
  $driver = new MemcachedCache();
  $driver
    ->setMemcached($this->memcached);
  return $driver;
}