本文整理匯總了PHP中WikiaBaseTest::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP WikiaBaseTest::tearDown方法的具體用法?PHP WikiaBaseTest::tearDown怎麽用?PHP WikiaBaseTest::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WikiaBaseTest
的用法示例。
在下文中一共展示了WikiaBaseTest::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
public function tearDown()
{
if (!empty($this->tmpFile)) {
unlink($this->tmpFile);
}
parent::tearDown();
}
示例2: tearDown
public function tearDown()
{
parent::tearDown();
if ($this->tmpPath !== false) {
unlink($this->tmpPath);
}
}
示例3: tearDown
public function tearDown()
{
global $wgApiAccess, $wgApiEnvironment;
$wgApiAccess = $this->org_wgApiAccess;
$wgApiEnvironment = $this->org_wgApiEnvironment;
parent::tearDown();
}
示例4: tearDown
function tearDown()
{
global $wgDevelEnvironment, $wgDevelEnvironmentName;
$wgDevelEnvironment = $this->wgDevelEnv;
$wgDevelEnvironmentName = $this->wgDevelEnvName;
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
parent::tearDown();
global $wgStagingList;
$wgStagingList = $this->org_StagingList;
if (!empty($this->serverName)) {
$_SERVER['SERVER_NAME'] = $this->serverName;
}
}
示例6: tearDown
function tearDown()
{
parent::tearDown();
$_SERVER = $this->serverOriginal;
}
示例7: tearDown
public function tearDown()
{
global $wgDevelEnvironment;
$wgDevelEnvironment = $this->org_wgDevelEnvironment;
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
@unlink($this->tmpFile);
parent::tearDown();
}
示例9: tearDown
protected function tearDown()
{
// we use libxml only for tests here
libxml_clear_errors();
parent::tearDown();
}
示例10: tearDown
public function tearDown()
{
parent::tearDown();
global $wgCommandLineSilentMode;
$wgCommandLineSilentMode = $this->silentMode;
}
示例11: tearDown
public function tearDown()
{
parent::tearDown();
}
示例12: tearDown
public function tearDown()
{
parent::tearDown();
$this->app->wg->Out->mScripts = $this->wgOutmScriptsCached;
$this->wgOutmScriptsCached = '';
}
示例13: tearDown
public function tearDown()
{
global $wgHooks;
$wgHooks = $this->oldWgHooks;
parent::tearDown();
}
示例14: tearDown
public function tearDown()
{
parent::tearDown();
global $wgUser;
$wgUser = $this->backupUser;
}
示例15: tearDown
protected function tearDown()
{
global $wgCityId;
$wgCityId = $this->wgCityId;
parent::tearDown();
}