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(); }