public function testWarmup()
 {
     $container = new Container();
     $container->set('ezpublish.config.resolver.core', new stdClass());
     $container->set('ezpublish.config.resolver.chain', new stdClass());
     self::assertTrue($container->initialized('ezpublish.config.resolver.core'));
     self::assertTrue($container->initialized('ezpublish.config.resolver.chain'));
     $warmer = new ConfigResolverCleanup();
     $warmer->setContainer($container);
     $warmer->warmUp('my_cache_dir');
     self::assertFalse($container->initialized('ezpublish.config.resolver.core'));
     self::assertFalse($container->initialized('ezpublish.config.resolver.chain'));
 }
 /**
  * {@inheritdoc}
  */
 public function initialized($id)
 {
     if (array_key_exists($id, $this->mocked)) {
         return true;
     }
     return parent::initialized($id);
 }