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