You are here

public function MemcachedCacheTest::testNoExpire 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::testNoExpire()

File

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

Class

MemcachedCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testNoExpire() {
  $cache = $this
    ->_getCacheDriver();
  $cache
    ->save('noexpire', 'value', 0);
  sleep(1);
  $this
    ->assertTrue($cache
    ->contains('noexpire'), 'Memcache provider should support no-expire');
}