You are here

public function CacheTest::testFlushAll in Plug 7

File

lib/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php, line 145

Class

CacheTest

Namespace

Doctrine\Tests\Common\Cache

Code

public function testFlushAll() {
  $cache = $this
    ->_getCacheDriver();
  $this
    ->assertTrue($cache
    ->save('key1', 1));
  $this
    ->assertTrue($cache
    ->save('key2', 2));
  $this
    ->assertTrue($cache
    ->flushAll());
  $this
    ->assertFalse($cache
    ->contains('key1'));
  $this
    ->assertFalse($cache
    ->contains('key2'));
}