You are here

public function CouchbaseCacheTest::testNoExpire in Zircon Profile 8.0

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

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CouchbaseCacheTest.php, line 25

Class

CouchbaseCacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

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