コード例 #1
0
ファイル: TranslateTest.php プロジェクト: JellyBellyDev/zle
 protected function tearDown()
 {
     // restore static variables
     if (isset($this->cache)) {
         Zend_Translate_Adapter::setCache($this->cache);
         unset($this->cache);
     } else {
         Zend_Translate_Adapter::removeCache();
     }
     // unset the registry
     Zend_Registry::_unsetInstance();
 }
コード例 #2
0
 /**
  * Removes any set cache
  *
  * @return void
  */
 public static function removeCache()
 {
     Zend_Translate_Adapter::removeCache();
 }