public function tearDown() { $cache = CacheLocator::getProxyCacheInstance(); $cache->flush(); $cache = CacheLocator::getDefinitionsCacheInstance(); $cache->flush(); $cache = CacheLocator::getAnnotationsCacheInstance(); $cache->flush(); $cache = CacheLocator::getBeansCacheInstance(); $cache->flush(); $cache = CacheLocator::getAspectCacheInstance(); $cache->flush(); }
/** * @test * @expectedException Ding\Cache\Exception\CacheException */ public function cannot_get_invalid_cache() { CacheLocator::configure(array('bdef' => array('impl' => 'asdads'))); CacheLocator::getDefinitionsCacheInstance(); }