本文整理匯總了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();
}