本文整理汇总了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;
}
示例2: tearDown
public function tearDown()
{
// turn off caching again.
global $wgMainCacheType;
$wgMainCacheType = $this->oldcache;
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
global $wgShowEXIF, $wgEnableAutoRotation;
$wgShowEXIF = $this->show;
$wgEnableAutoRotation = $this->oldAuto;
parent::tearDown();
}
示例4: tearDown
protected function tearDown()
{
$this->test_wrapper->destroyManuscriptsTest();
unset($this->test_wrapper);
unset($this->t);
parent::tearDown();
}
示例5: tearDown
protected function tearDown()
{
$this->database_test_instance_creator->destroyManuscriptsTest();
unset($this->database_test_instance_creator);
unset($this->t);
parent::tearDown();
}
示例6: tearDown
protected function tearDown()
{
parent::tearDown();
$fcache = BloomCache::get('main');
if ($fcache instanceof BloomCacheRedis) {
$fcache->delete("unit-testing-" . self::$suffix);
}
}
示例7: tearDown
protected function tearDown()
{
foreach (glob($this->tmpPrefix . '*') as $directory) {
$this->deleteFilesRecursively($directory);
}
unlink($this->tmpFilepath);
parent::tearDown();
}
示例8: tearDown
protected function tearDown()
{
global $wgReadOnlyFile;
if (file_exists($wgReadOnlyFile)) {
unlink($wgReadOnlyFile);
}
parent::tearDown();
}
示例9: tearDown
function tearDown()
{
foreach ($this->engines as $engine) {
$engine->destroy();
}
$this->engines = array();
parent::tearDown();
}
示例10: tearDown
protected function tearDown()
{
parent::tearDown();
if ($this->functionTest) {
$this->dropFunctions();
$this->functionTest = false;
}
}
示例11: tearDown
function tearDown()
{
// Restore $wgServer and $wgCanonicalServer
global $wgServer, $wgCanonicalServer;
$wgServer = $this->oldServer;
$wgCanonicalServer = $this->oldCanServer;
parent::tearDown();
}
示例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();
}
示例13: tearDown
public function tearDown()
{
if (strlen($this->tempFileName) > 0) {
unlink($this->tempFileName);
unset($this->tempFileName);
}
parent::tearDown();
}
示例14: tearDown
public function tearDown()
{
global $wgContLang;
// Reset namespace cache
MWNamespace::getCanonicalNamespaces(true);
$wgContLang->resetNamespaces();
parent::tearDown();
}
示例15: tearDown
public function tearDown()
{
foreach ($this->unsetReqVals as $v) {
MobileContext::singleton()->getRequest()->unsetVal($v);
}
MobileContext::setInstance(null);
// refresh MobileContext instance
parent::tearDown();
}