本文整理汇总了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();
}
示例2: tearDown
function tearDown()
{
global $wgMemc;
unset($wgMemc);
unset($this->lc);
unset($this->lang);
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
global $wgHooks;
if ($this->mOldGetPreferencesHooks !== false) {
$wgHooks['GetPreferences'] = $this->mOldGetPreferencesHooks;
$this->mOldGetPreferencesHooks = false;
}
parent::tearDown();
}
示例4: tearDown
protected function tearDown()
{
global $wgContLang;
parent::tearDown();
MWNamespace::getCanonicalNamespaces(true);
# reset namespace cache
$wgContLang->resetNamespaces();
# reset namespace cache
}
示例5: tearDown
protected function tearDown()
{
// Avoid leaking session over tests
if (session_id() != '') {
global $wgUser;
$wgUser->logout();
session_destroy();
}
parent::tearDown();
}
示例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
}
示例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();
}
示例8: tearDown
protected function tearDown()
{
parent::tearDown();
global $wgLang;
Language::getLocalisationCache()->recache($wgLang->getCode());
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
TestingAccessWrapper::newFromClass('Hooks')->handlers = $this->originalHandlers;
SpecialPageFactory::resetList();
}
示例10: tearDown
protected function tearDown()
{
// Avoid leaking session over tests
MediaWiki\Session\SessionManager::getGlobalSession()->clear();
parent::tearDown();
}
示例11: tearDown
/**
* Anything cleanup you need to do should go here.
*/
protected function tearDown()
{
parent::tearDown();
}
示例12: tearDown
protected function tearDown()
{
parent::tearDown();
$this->skin = null;
}
示例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();
}
示例14: tearDown
/**
* Anything cleanup you need to do should go here.
*/
function tearDown()
{
parent::tearDown();
}
示例15: tearDown
protected function tearDown()
{
unset($this->search);
parent::tearDown();
}