本文整理汇总了PHP中DatabaseTestCase::tearDown方法的典型用法代码示例。如果您正苦于以下问题:PHP DatabaseTestCase::tearDown方法的具体用法?PHP DatabaseTestCase::tearDown怎么用?PHP DatabaseTestCase::tearDown使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DatabaseTestCase
的用法示例。
在下文中一共展示了DatabaseTestCase::tearDown方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tearDown
public function tearDown()
{
parent::tearDown();
$app = \FelixOnline\Core\App::getInstance();
$app['db']->dbh->close();
\FelixOnline\Core\App::setInstance(null);
}
示例2: tearDown
public function tearDown()
{
parent::tearDown();
Log::unsetInstance();
@unlink(self::getLogFileLocation());
Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
}
示例3: tearDown
public function tearDown()
{
$this->setSuperUser();
if ($this->settings) {
$this->settings->removeAllPluginSettings();
}
parent::tearDown();
}
示例4: tearDown
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.
*
* @access protected
*/
protected function tearDown()
{
parent::tearDown();
$pdo = $this->getDatabaseTester()->getConnection()->getConnection();
$pdo->exec("DELETE FROM eav_entity;");
$pdo->exec("DELETE FROM eav_entity_int;");
$pdo->exec("DELETE FROM eav_entity_decimal;");
$pdo->exec("DELETE FROM eav_entity_string;");
$pdo->exec("DELETE FROM eav_entity_text;");
$pdo->exec("DELETE FROM eav_attribute;");
}
示例5: tearDown
public function tearDown()
{
WidgetsList::getInstance()->_reset();
MenuReporting::getInstance()->unsetInstance();
Translate::unloadEnglishTranslation();
unset($_GET['idSite']);
parent::tearDown();
}
示例6: tearDown
public function tearDown()
{
parent::tearDown();
Fixture::unloadAllPlugins();
}
示例7: tearDown
public function tearDown()
{
$siteIdsToCleanup = new SharedSiteIds(array());
$siteIdsToCleanup->setSiteIdsToArchive(array());
parent::tearDown();
}
示例8: tearDown
public function tearDown()
{
EventDispatcher::getInstance()->clearObservers('Tracker.Request.getIdSite');
parent::tearDown();
}
示例9: tearDown
public function tearDown()
{
parent::tearDown();
}
示例10: tearDown
public function tearDown()
{
Piwik_PDFReports_API::$cache = array();
parent::tearDown();
}