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


PHP IntegrationTestCase::tearDown方法代碼示例

本文整理匯總了PHP中Piwik\Tests\Framework\TestCase\IntegrationTestCase::tearDown方法的典型用法代碼示例。如果您正苦於以下問題:PHP IntegrationTestCase::tearDown方法的具體用法?PHP IntegrationTestCase::tearDown怎麽用?PHP IntegrationTestCase::tearDown使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Piwik\Tests\Framework\TestCase\IntegrationTestCase的用法示例。


在下文中一共展示了IntegrationTestCase::tearDown方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tearDown

 public function tearDown()
 {
     parent::tearDown();
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
 }
開發者ID:TensorWrenchOSS,項目名稱:piwik,代碼行數:7,代碼來源:LogTest.php

示例2: tearDown

 public function tearDown()
 {
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Log::$debugBacktraceForTests = null;
     parent::tearDown();
 }
開發者ID:CaptainSharf,項目名稱:SSAD_Project,代碼行數:7,代碼來源:LogTest.php

示例3: tearDown

 public function tearDown()
 {
     if (file_exists($this->dir . self::NOT_EXISTING_FILE)) {
         unlink($this->dir . self::NOT_EXISTING_FILE);
     }
     parent::tearDown();
 }
開發者ID:diosmosis,項目名稱:piwik,代碼行數:7,代碼來源:FileTest.php

示例4: tearDown

 public function tearDown()
 {
     $this->logVisit->uninstall();
     $this->logAction->uninstall();
     $this->logConverison->uninstall();
     parent::tearDown();
 }
開發者ID:ep123,項目名稱:plugin-CustomDimensions,代碼行數:7,代碼來源:LogTableTest.php

示例5: tearDown

 public function tearDown()
 {
     if ($this->assetManager !== null) {
         $this->assetManager->removeMergedAssets();
     }
     parent::tearDown();
 }
開發者ID:dorelljames,項目名稱:piwik,代碼行數:7,代碼來源:AssetManagerTest.php

示例6: tearDown

 public function tearDown()
 {
     $this->setSuperUser();
     if ($this->settings) {
         $this->settings->removeAllPluginSettings();
     }
     parent::tearDown();
 }
開發者ID:TensorWrenchOSS,項目名稱:piwik,代碼行數:8,代碼來源:SettingsTest.php

示例7: tearDown

 public function tearDown()
 {
     if (is_object($this->output)) {
         $this->output->destroy();
     }
     File::reset();
     parent::tearDown();
 }
開發者ID:dorelljames,項目名稱:piwik,代碼行數:8,代碼來源:OutputTest.php

示例8: tearDown

 public function tearDown()
 {
     parent::tearDown();
     StaticContainer::clearContainer();
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Log::$debugBacktraceForTests = null;
 }
開發者ID:bossrabbit,項目名稱:piwik,代碼行數:8,代碼來源:LogTest.php

示例9: tearDown

 public function tearDown()
 {
     if (!SharedSiteIds::isSupported()) {
         return;
     }
     $siteIdsToCleanup = new SharedSiteIds(array());
     $siteIdsToCleanup->setSiteIdsToArchive(array());
     parent::tearDown();
 }
開發者ID:mgou-net,項目名稱:piwik,代碼行數:9,代碼來源:SharedSiteIdsTest.php

示例10: tearDown

 public function tearDown()
 {
     // clean up your test here if needed
     $tables = ArchiveTableCreator::getTablesArchivesInstalled();
     if (!empty($tables)) {
         Db::dropTables($tables);
     }
     parent::tearDown();
 }
開發者ID:FluentDevelopment,項目名稱:piwik,代碼行數:9,代碼來源:VisitsSummaryTest.php

示例11: tearDown

 public function tearDown()
 {
     $this->restoreConfigFile();
     if ($this->tracker) {
         $this->tracker->disconnectDatabase();
     }
     if (array_key_exists('PIWIK_TRACKER_DEBUG', $GLOBALS)) {
         unset($GLOBALS['PIWIK_TRACKER_DEBUG']);
     }
     parent::tearDown();
 }
開發者ID:dorelljames,項目名稱:piwik,代碼行數:11,代碼來源:TrackerTest.php

示例12: tearDown

 public function tearDown()
 {
     $this->output->destroy();
     File::reset();
     parent::tearDown();
 }
開發者ID:FluentDevelopment,項目名稱:piwik,代碼行數:6,代碼來源:OutputTest.php

示例13: tearDown

 public function tearDown()
 {
     MenuReporting::getInstance()->unsetInstance();
     parent::tearDown();
 }
開發者ID:mgou-net,項目名稱:piwik,代碼行數:5,代碼來源:MenuReportingTest.php

示例14: tearDown

 public function tearDown()
 {
     parent::tearDown();
     $tempTableName = Common::prefixTable(RawLogDao::DELETE_UNUSED_ACTIONS_TEMP_TABLE_NAME);
     Db::query("DROP TABLE IF EXISTS " . $tempTableName);
     parent::tearDown();
 }
開發者ID:FluentDevelopment,項目名稱:piwik,代碼行數:7,代碼來源:DataPurgingTest.php

示例15: tearDown

 public function tearDown()
 {
     parent::tearDown();
     Cache::flushAll();
 }
開發者ID:FluentDevelopment,項目名稱:piwik,代碼行數:5,代碼來源:ReferrerSpamFilterTest.php


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