本文整理汇总了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;
}
示例2: tearDown
public function tearDown()
{
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Log::$debugBacktraceForTests = null;
parent::tearDown();
}
示例3: tearDown
public function tearDown()
{
if (file_exists($this->dir . self::NOT_EXISTING_FILE)) {
unlink($this->dir . self::NOT_EXISTING_FILE);
}
parent::tearDown();
}
示例4: tearDown
public function tearDown()
{
$this->logVisit->uninstall();
$this->logAction->uninstall();
$this->logConverison->uninstall();
parent::tearDown();
}
示例5: tearDown
public function tearDown()
{
if ($this->assetManager !== null) {
$this->assetManager->removeMergedAssets();
}
parent::tearDown();
}
示例6: tearDown
public function tearDown()
{
$this->setSuperUser();
if ($this->settings) {
$this->settings->removeAllPluginSettings();
}
parent::tearDown();
}
示例7: tearDown
public function tearDown()
{
if (is_object($this->output)) {
$this->output->destroy();
}
File::reset();
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
parent::tearDown();
StaticContainer::clearContainer();
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Log::$debugBacktraceForTests = null;
}
示例9: tearDown
public function tearDown()
{
if (!SharedSiteIds::isSupported()) {
return;
}
$siteIdsToCleanup = new SharedSiteIds(array());
$siteIdsToCleanup->setSiteIdsToArchive(array());
parent::tearDown();
}
示例10: tearDown
public function tearDown()
{
// clean up your test here if needed
$tables = ArchiveTableCreator::getTablesArchivesInstalled();
if (!empty($tables)) {
Db::dropTables($tables);
}
parent::tearDown();
}
示例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();
}
示例12: tearDown
public function tearDown()
{
$this->output->destroy();
File::reset();
parent::tearDown();
}
示例13: tearDown
public function tearDown()
{
MenuReporting::getInstance()->unsetInstance();
parent::tearDown();
}
示例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();
}
示例15: tearDown
public function tearDown()
{
parent::tearDown();
Cache::flushAll();
}