Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns true when a cache is set
  *
  * @return boolean
  */
 public static function hasCache()
 {
     return Zend_Translate_Adapter::hasCache();
 }