1
0
mirror of synced 2025-01-19 06:51:40 +03:00

#954 DDC-2982 - Evicting all cache entries is not supported with a generic cache adapter

This commit is contained in:
Marco Pivetta 2015-01-17 23:30:20 +01:00
parent 95c6cca336
commit 0e4a7caf0b

View File

@ -60,4 +60,16 @@ class DefaultRegionTest extends AbstractRegionTest
$this->assertSame('foo', $cache->getNamespace());
}
public function testEvictAllWithGenericCacheThrowsUnsupportedException()
{
/* @var $cache \Doctrine\Common\Cache\Cache */
$cache = $this->getMock('Doctrine\Common\Cache\Cache');
$region = new DefaultRegion('foo', $cache);
$this->setExpectedException('BadMethodCallException');
$region->evictAll();
}
}