public function testClearResolversCacheClearsAll()
 {
     $resolver = $this->getMockResolver();
     $resolver->expects($this->exactly(5))->method('clear')->with('imagine_cache');
     $cacheManager = new CacheManager($this->getMockFilterConfiguration(), $this->getMockRouter(), $this->fixturesDir . '/assets', 'default');
     $cacheManager->addResolver('default', $resolver);
     $cacheManager->addResolver('thumbnail1', $resolver);
     $cacheManager->addResolver('thumbnail2', $resolver);
     $cacheManager->addResolver('thumbnail3', $resolver);
     $cacheManager->addResolver('thumbnail4', $resolver);
     $cacheManager->clearResolversCache('imagine_cache');
 }
 /**
  * (non-PHPdoc)
  * @see Symfony\Component\HttpKernel\CacheClearer\CacheClearerInterface::clear()
  */
 public function clear($cacheDir)
 {
     // $cacheDir contains the application cache, which we don't care about
     $this->cacheManager->clearResolversCache($this->cachePrefix);
 }