protected function setUp() { // initialize an app and a bootstrap $this->application = new Zend_Application('testing'); $this->bootstrap = new Zend_Application_Bootstrap_Bootstrap($this->application); // save static variables if (Zend_Translate_Adapter::hasCache()) { $this->cache = Zend_Translate_Adapter::getCache(); } }
/** * Returns true when a cache is set * * @return boolean */ public static function hasCache() { return Zend_Translate_Adapter::hasCache(); }