当前位置: 首页>>代码示例>>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;未经允许,请勿转载。