protected function _bootstrapConfiguration()
 {
     if ($this->_application->getConfiguration()) {
         return;
     }
     $configProxy = new EngineBlock_Config_CacheProxy($this->_getAllConfigFiles(), $this->_application->getDiContainer()->getApplicationCache());
     $this->_application->setConfiguration($configProxy->load());
 }
 public function testConfigIsNotLoadedFromCacheIfResultIsInvalid()
 {
     $applicationCacheMock = Phake::mock('Zend_Cache_Backend_Apc');
     Phake::when($applicationCacheMock)->test(Phake::anyParameters())->thenReturn(time());
     Phake::when($applicationCacheMock)->load(Phake::anyParameters())->thenReturn('incorrectResult');
     $cacheProxy = new EngineBlock_Config_CacheProxy($this->files, $applicationCacheMock);
     /** @var $config Zend_Config */
     $config = $cacheProxy->load();
     $this->assertEquals($this->expectedConfigArray, $config->toArray());
 }