You are here

public function VoidCacheTest::testShouldAlwaysReturnTrueOnSaveButNotStoreAnything in Zircon Profile 8.0

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

File

vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/VoidCacheTest.php, line 28

Class

VoidCacheTest
@covers \Doctrine\Common\Cache\VoidCache

Namespace

Doctrine\Tests\Common\Cache

Code

public function testShouldAlwaysReturnTrueOnSaveButNotStoreAnything() {
  $cache = new VoidCache();
  $this
    ->assertTrue($cache
    ->save('foo', 'fooVal'));
  $this
    ->assertFalse($cache
    ->contains('foo'));
  $this
    ->assertFalse($cache
    ->fetch('foo'));
}