public function CacheTest::testFlushAll in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/CacheTest.php \Doctrine\Tests\Common\Cache\CacheTest::testFlushAll()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ CacheTest.php, line 147
Class
Namespace
Doctrine\Tests\Common\CacheCode
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'));
}