示例#1
0
 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();
 }
 /**
  * {@inheritDoc}
  *
  * @param MultiGetCache $cache
  */
 public function __construct($name, MultiGetCache $cache, $lifetime = 0)
 {
     /* @var $cache \Doctrine\Common\Cache\Cache */
     parent::__construct($name, $cache, $lifetime);
 }