当前位置: 首页>>代码示例>>PHP>>正文


PHP MediaWikiTestCase::tearDown方法代码示例

本文整理汇总了PHP中MediaWikiTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP MediaWikiTestCase::tearDown方法的具体用法?PHP MediaWikiTestCase::tearDown怎么用?PHP MediaWikiTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MediaWikiTestCase的用法示例。


在下文中一共展示了MediaWikiTestCase::tearDown方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: tearDown

 protected function tearDown()
 {
     unset($this->t);
     unset($this->context);
     parent::tearDown();
     return;
 }
开发者ID:akvankorlaar,项目名称:manuscriptdesk,代码行数:7,代码来源:SpecialNewManuscriptTest.php

示例2: tearDown

 public function tearDown()
 {
     // turn off caching again.
     global $wgMainCacheType;
     $wgMainCacheType = $this->oldcache;
     parent::tearDown();
 }
开发者ID:realsoc,项目名称:mediawiki-extensions,代码行数:7,代码来源:ConcurrencyCheckTest.php

示例3: tearDown

 public function tearDown()
 {
     global $wgShowEXIF, $wgEnableAutoRotation;
     $wgShowEXIF = $this->show;
     $wgEnableAutoRotation = $this->oldAuto;
     parent::tearDown();
 }
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:7,代码来源:ExifRotationTest.php

示例4: tearDown

 protected function tearDown()
 {
     $this->test_wrapper->destroyManuscriptsTest();
     unset($this->test_wrapper);
     unset($this->t);
     parent::tearDown();
 }
开发者ID:akvankorlaar,项目名称:manuscriptdesk,代码行数:7,代码来源:NewManuscriptWrapperTest.php

示例5: tearDown

 protected function tearDown()
 {
     $this->database_test_instance_creator->destroyManuscriptsTest();
     unset($this->database_test_instance_creator);
     unset($this->t);
     parent::tearDown();
 }
开发者ID:akvankorlaar,项目名称:manuscriptdesk,代码行数:7,代码来源:ManuscriptDeskBaseWrapperTest.php

示例6: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     $fcache = BloomCache::get('main');
     if ($fcache instanceof BloomCacheRedis) {
         $fcache->delete("unit-testing-" . self::$suffix);
     }
 }
开发者ID:Habatchii,项目名称:wikibase-for-mediawiki,代码行数:8,代码来源:RedisBloomCacheTest.php

示例7: tearDown

 protected function tearDown()
 {
     foreach (glob($this->tmpPrefix . '*') as $directory) {
         $this->deleteFilesRecursively($directory);
     }
     unlink($this->tmpFilepath);
     parent::tearDown();
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:8,代码来源:MigrateFileRepoLayoutTest.php

示例8: tearDown

 protected function tearDown()
 {
     global $wgReadOnlyFile;
     if (file_exists($wgReadOnlyFile)) {
         unlink($wgReadOnlyFile);
     }
     parent::tearDown();
 }
开发者ID:Habatchii,项目名称:wikibase-for-mediawiki,代码行数:8,代码来源:GlobalTest.php

示例9: tearDown

 function tearDown()
 {
     foreach ($this->engines as $engine) {
         $engine->destroy();
     }
     $this->engines = array();
     parent::tearDown();
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:8,代码来源:LuaEnvironmentComparisonTest.php

示例10: tearDown

 protected function tearDown()
 {
     parent::tearDown();
     if ($this->functionTest) {
         $this->dropFunctions();
         $this->functionTest = false;
     }
 }
开发者ID:nischayn22,项目名称:mediawiki-core,代码行数:8,代码来源:DatabaseTest.php

示例11: tearDown

 function tearDown()
 {
     // Restore $wgServer and $wgCanonicalServer
     global $wgServer, $wgCanonicalServer;
     $wgServer = $this->oldServer;
     $wgCanonicalServer = $this->oldCanServer;
     parent::tearDown();
 }
开发者ID:Jobava,项目名称:diacritice-meta-repo,代码行数:8,代码来源:CSSMinTest.php

示例12: tearDown

 public function tearDown()
 {
     $dbw = wfGetDB(DB_MASTER);
     // Clean up the mess we made...
     $dbw->delete('user', '*', __METHOD__);
     $dbw->delete('spoofuser', '*', __METHOD__);
     parent::tearDown();
 }
开发者ID:jasonthebomb,项目名称:mediawiki-extensions-AntiSpoof,代码行数:8,代码来源:SpoofUserTest.php

示例13: tearDown

 public function tearDown()
 {
     if (strlen($this->tempFileName) > 0) {
         unlink($this->tempFileName);
         unset($this->tempFileName);
     }
     parent::tearDown();
 }
开发者ID:eFFemeer,项目名称:seizamcore,代码行数:8,代码来源:SeleniumConfigurationTest.php

示例14: tearDown

 public function tearDown()
 {
     global $wgContLang;
     // Reset namespace cache
     MWNamespace::getCanonicalNamespaces(true);
     $wgContLang->resetNamespaces();
     parent::tearDown();
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:8,代码来源:ContentHandlerTest.php

示例15: tearDown

 public function tearDown()
 {
     foreach ($this->unsetReqVals as $v) {
         MobileContext::singleton()->getRequest()->unsetVal($v);
     }
     MobileContext::setInstance(null);
     // refresh MobileContext instance
     parent::tearDown();
 }
开发者ID:micha6554,项目名称:mediawiki-extensions-MobileFrontend,代码行数:9,代码来源:SpecialMobileDiffTest.php


注:本文中的MediaWikiTestCase::tearDown方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。