コード例 #1
0
 protected function tearDown()
 {
     global $wgHooks;
     $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
     $this->mOldGetPreferencesHooks = false;
     parent::tearDown();
 }
コード例 #2
0
 function tearDown()
 {
     global $wgMemc;
     unset($wgMemc);
     unset($this->lc);
     unset($this->lang);
     parent::tearDown();
 }
コード例 #3
0
 public function tearDown()
 {
     global $wgHooks;
     if ($this->mOldGetPreferencesHooks !== false) {
         $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
         $this->mOldGetPreferencesHooks = false;
     }
     parent::tearDown();
 }
コード例 #4
0
 protected function tearDown()
 {
     global $wgContLang;
     parent::tearDown();
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
コード例 #5
0
 protected function tearDown()
 {
     // Avoid leaking session over tests
     if (session_id() != '') {
         global $wgUser;
         $wgUser->logout();
         session_destroy();
     }
     parent::tearDown();
 }
コード例 #6
0
ファイル: PagePropsTest.php プロジェクト: paladox/2
 protected function tearDown()
 {
     global $wgExtraNamespaces, $wgNamespaceContentModels, $wgContentHandlers, $wgContLang;
     parent::tearDown();
     unset($wgExtraNamespaces[12312]);
     unset($wgExtraNamespaces[12313]);
     unset($wgNamespaceContentModels[12312]);
     unset($wgContentHandlers['DUMMY']);
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
コード例 #7
0
 protected function tearDown()
 {
     foreach ($this->pages_to_delete as $p) {
         /* @var $p WikiPage */
         try {
             if ($p->exists()) {
                 $p->doDeleteArticle("testing done.");
             }
         } catch (MWException $ex) {
             // fail silently
         }
     }
     parent::tearDown();
 }
コード例 #8
0
 protected function tearDown()
 {
     parent::tearDown();
     global $wgLang;
     Language::getLocalisationCache()->recache($wgLang->getCode());
 }
コード例 #9
0
 public function tearDown()
 {
     parent::tearDown();
     TestingAccessWrapper::newFromClass('Hooks')->handlers = $this->originalHandlers;
     SpecialPageFactory::resetList();
 }
コード例 #10
0
ファイル: ApiTestCase.php プロジェクト: lourinaldi/mediawiki
 protected function tearDown()
 {
     // Avoid leaking session over tests
     MediaWiki\Session\SessionManager::getGlobalSession()->clear();
     parent::tearDown();
 }
コード例 #11
0
 /**
  * Anything cleanup you need to do should go here.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
コード例 #12
0
ファイル: SideBarTest.php プロジェクト: mangowi/mediawiki
 protected function tearDown()
 {
     parent::tearDown();
     $this->skin = null;
 }
コード例 #13
0
 protected function tearDown()
 {
     if ($this->luaDataProvider) {
         $this->luaDataProvider->destroy();
         $this->luaDataProvider = null;
     }
     if ($this->engine) {
         $this->engine->destroy();
         $this->engine = null;
     }
     parent::tearDown();
 }
コード例 #14
0
ファイル: SampleTest.php プロジェクト: eFFemeer/seizamcore
 /**
  * Anything cleanup you need to do should go here.
  */
 function tearDown()
 {
     parent::tearDown();
 }
コード例 #15
0
 protected function tearDown()
 {
     unset($this->search);
     parent::tearDown();
 }
コード例 #16
0
 protected function tearDown()
 {
     unset($this->lc);
     unset($this->lang);
     parent::tearDown();
 }
コード例 #17
0
 protected function tearDown()
 {
     MWTidy::destroySingleton();
     parent::tearDown();
 }
コード例 #18
0
ファイル: TimeAdjustTest.php プロジェクト: yusufchang/app
 public function tearDown()
 {
     global $wgLocalTZoffset;
     $wgLocalTZoffset = self::$offset;
     parent::tearDown();
 }