/** * @group ZF-7058 */ public function testSetCacheFromCacheManager() { $configCache = array('memory' => array('frontend' => array('name' => 'Core', 'options' => array('lifetime' => 120, 'automatic_serialization' => true)), 'backend' => array('name' => 'Black Hole'))); $this->bootstrap->registerPluginResource('cachemanager', $configCache); $this->assertFalse(Zend_Locale::hasCache()); $config = array('bootstrap' => $this->bootstrap, 'cache' => 'memory'); $resource = new Zend_Application_Resource_Locale($config); $resource->init(); $this->assertTrue(Zend_Locale::hasCache()); Zend_Locale::removeCache(); }