You are here

public function MemcachedCacheTest::testLongLifetime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php \Doctrine\Tests\Common\Cache\MemcachedCacheTest::testLongLifetime()

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcachedCacheTest.php, line 43

Class

MemcachedCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testLongLifetime() {
  $cache = $this
    ->_getCacheDriver();
  $cache
    ->save('key', 'value', 30 * 24 * 3600 + 1);
  $this
    ->assertTrue($cache
    ->contains('key'), 'Memcache provider should support TTL > 30 days');
}