當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WikiaBaseTest::tearDown方法代碼示例

本文整理匯總了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();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:7,代碼來源:ImageServingCroppingTest.php

示例2: tearDown

 public function tearDown()
 {
     parent::tearDown();
     if ($this->tmpPath !== false) {
         unlink($this->tmpPath);
     }
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:7,代碼來源:UploadVerifyFileTest.php

示例3: tearDown

 public function tearDown()
 {
     global $wgApiAccess, $wgApiEnvironment;
     $wgApiAccess = $this->org_wgApiAccess;
     $wgApiEnvironment = $this->org_wgApiEnvironment;
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:7,代碼來源:ApiAccessServiceTest.php

示例4: tearDown

 function tearDown()
 {
     global $wgDevelEnvironment, $wgDevelEnvironmentName;
     $wgDevelEnvironment = $this->wgDevelEnv;
     $wgDevelEnvironmentName = $this->wgDevelEnvName;
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:7,代碼來源:GlobalTitleTest.php

示例5: tearDown

 public function tearDown()
 {
     parent::tearDown();
     global $wgStagingList;
     $wgStagingList = $this->org_StagingList;
     if (!empty($this->serverName)) {
         $_SERVER['SERVER_NAME'] = $this->serverName;
     }
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:9,代碼來源:WikiFactoryTest.php

示例6: tearDown

 function tearDown()
 {
     parent::tearDown();
     $_SERVER = $this->serverOriginal;
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:5,代碼來源:RequestIdTest.php

示例7: tearDown

 public function tearDown()
 {
     global $wgDevelEnvironment;
     $wgDevelEnvironment = $this->org_wgDevelEnvironment;
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:TvApiControllerTest.php

示例8: tearDown

 public function tearDown()
 {
     @unlink($this->tmpFile);
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:5,代碼來源:MetaCSVServiceTest.php

示例9: tearDown

 protected function tearDown()
 {
     // we use libxml only for tests here
     libxml_clear_errors();
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:SimpleXmlUtilTest.php

示例10: tearDown

 public function tearDown()
 {
     parent::tearDown();
     global $wgCommandLineSilentMode;
     $wgCommandLineSilentMode = $this->silentMode;
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:CityVisualizationTest.php

示例11: tearDown

 public function tearDown()
 {
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:4,代碼來源:CreateNewWikiControllerTest.php

示例12: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $this->app->wg->Out->mScripts = $this->wgOutmScriptsCached;
     $this->wgOutmScriptsCached = '';
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:WallNotificationsControllerTest.php

示例13: tearDown

 public function tearDown()
 {
     global $wgHooks;
     $wgHooks = $this->oldWgHooks;
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:ResourceLoaderTest.php

示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     global $wgUser;
     $wgUser = $this->backupUser;
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:FounderEmailsEditEventTest.php

示例15: tearDown

 protected function tearDown()
 {
     global $wgCityId;
     $wgCityId = $this->wgCityId;
     parent::tearDown();
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:6,代碼來源:FounderProgressBarTest.php


注:本文中的WikiaBaseTest::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。