public function ChainCacheTest::testFlushToAllProviders in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php \Doctrine\Tests\Common\Cache\ChainCacheTest::testFlushToAllProviders()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ ChainCacheTest.php, line 78
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function testFlushToAllProviders() {
$cache1 = $this
->getMockForAbstractClass('Doctrine\\Common\\Cache\\CacheProvider');
$cache2 = $this
->getMockForAbstractClass('Doctrine\\Common\\Cache\\CacheProvider');
$cache1
->expects($this
->once())
->method('doFlush');
$cache2
->expects($this
->once())
->method('doFlush');
$chainCache = new ChainCache(array(
$cache1,
$cache2,
));
$chainCache
->flushAll();
}