当前位置: 首页>>代码示例>>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;未经允许,请勿转载。