public function ChainCacheTest::testNamespaceIsPropagatedToAllProviders in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/ChainCacheTest.php \Doctrine\Tests\Common\Cache\ChainCacheTest::testNamespaceIsPropagatedToAllProviders()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ ChainCacheTest.php, line 54
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function testNamespaceIsPropagatedToAllProviders() {
$cache1 = new ArrayCache();
$cache2 = new ArrayCache();
$chainCache = new ChainCache(array(
$cache1,
$cache2,
));
$chainCache
->setNamespace('bar');
$this
->assertEquals('bar', $cache1
->getNamespace());
$this
->assertEquals('bar', $cache2
->getNamespace());
}