當前位置: 首頁>>代碼示例>>PHP>>正文


PHP MediaWikiLangTestCase::tearDown方法代碼示例

本文整理匯總了PHP中MediaWikiLangTestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP MediaWikiLangTestCase::tearDown方法的具體用法?PHP MediaWikiLangTestCase::tearDown怎麽用?PHP MediaWikiLangTestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在MediaWikiLangTestCase的用法示例。


在下文中一共展示了MediaWikiLangTestCase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 protected function tearDown()
 {
     global $wgHooks;
     $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
     $this->mOldGetPreferencesHooks = false;
     parent::tearDown();
 }
開發者ID:Habatchii,項目名稱:wikibase-for-mediawiki,代碼行數:7,代碼來源:ApiOptionsTest.php

示例2: tearDown

 function tearDown()
 {
     global $wgMemc;
     unset($wgMemc);
     unset($this->lc);
     unset($this->lang);
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:8,代碼來源:LanguageConverterTest.php

示例3: tearDown

 public function tearDown()
 {
     global $wgHooks;
     if ($this->mOldGetPreferencesHooks !== false) {
         $wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
         $this->mOldGetPreferencesHooks = false;
     }
     parent::tearDown();
 }
開發者ID:Jobava,項目名稱:diacritice-meta-repo,代碼行數:9,代碼來源:ApiOptionsTest.php

示例4: tearDown

 protected function tearDown()
 {
     global $wgContLang;
     parent::tearDown();
     MWNamespace::getCanonicalNamespaces(true);
     # reset namespace cache
     $wgContLang->resetNamespaces();
     # reset namespace cache
 }
開發者ID:MediaWiki-stable,項目名稱:1.26.1,代碼行數:9,代碼來源:TitleMethodsTest.php

示例5: tearDown

 protected function tearDown()
 {
     // Avoid leaking session over tests
     if (session_id() != '') {
         global $wgUser;
         $wgUser->logout();
         session_destroy();
     }
     parent::tearDown();
 }
開發者ID:eliagbayani,項目名稱:LiteratureEditor,代碼行數:10,代碼來源:ApiTestCase.php

示例6: tearDown

 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
 }
開發者ID:paladox,項目名稱:2,代碼行數:13,代碼來源:PagePropsTest.php

示例7: tearDown

 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();
 }
開發者ID:Habatchii,項目名稱:wikibase-for-mediawiki,代碼行數:14,代碼來源:WikiPageTest.php

示例8: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     global $wgLang;
     Language::getLocalisationCache()->recache($wgLang->getCode());
 }
開發者ID:eliagbayani,項目名稱:LiteratureEditor,代碼行數:6,代碼來源:LogFormatterTest.php

示例9: tearDown

 public function tearDown()
 {
     parent::tearDown();
     TestingAccessWrapper::newFromClass('Hooks')->handlers = $this->originalHandlers;
     SpecialPageFactory::resetList();
 }
開發者ID:claudinec,項目名稱:galan-wiki,代碼行數:6,代碼來源:SearchEnginePrefixTest.php

示例10: tearDown

 protected function tearDown()
 {
     // Avoid leaking session over tests
     MediaWiki\Session\SessionManager::getGlobalSession()->clear();
     parent::tearDown();
 }
開發者ID:lourinaldi,項目名稱:mediawiki,代碼行數:6,代碼來源:ApiTestCase.php

示例11: tearDown

 /**
  * Anything cleanup you need to do should go here.
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
開發者ID:nischayn22,項目名稱:mediawiki-core,代碼行數:7,代碼來源:SampleTest.php

示例12: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $this->skin = null;
 }
開發者ID:mangowi,項目名稱:mediawiki,代碼行數:5,代碼來源:SideBarTest.php

示例13: tearDown

 protected function tearDown()
 {
     if ($this->luaDataProvider) {
         $this->luaDataProvider->destroy();
         $this->luaDataProvider = null;
     }
     if ($this->engine) {
         $this->engine->destroy();
         $this->engine = null;
     }
     parent::tearDown();
 }
開發者ID:sammykumar,項目名稱:TheVRForums,代碼行數:12,代碼來源:LuaEngineTestBase.php

示例14: tearDown

 /**
  * Anything cleanup you need to do should go here.
  */
 function tearDown()
 {
     parent::tearDown();
 }
開發者ID:eFFemeer,項目名稱:seizamcore,代碼行數:7,代碼來源:SampleTest.php

示例15: tearDown

 protected function tearDown()
 {
     unset($this->search);
     parent::tearDown();
 }
開發者ID:Habatchii,項目名稱:wikibase-for-mediawiki,代碼行數:5,代碼來源:SearchEngineTest.php


注:本文中的MediaWikiLangTestCase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。