當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DatabaseTestCase::tearDown方法代碼示例

本文整理匯總了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);
 }
開發者ID:felixonline,項目名稱:core,代碼行數:7,代碼來源:AppTestCase.php

示例2: tearDown

 public function tearDown()
 {
     parent::tearDown();
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
 }
開發者ID:carriercomm,項目名稱:piwik,代碼行數:7,代碼來源:LogTest.php

示例3: tearDown

 public function tearDown()
 {
     $this->setSuperUser();
     if ($this->settings) {
         $this->settings->removeAllPluginSettings();
     }
     parent::tearDown();
 }
開發者ID:a4tunado,項目名稱:piwik,代碼行數:8,代碼來源:SettingsTest.php

示例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;");
 }
開發者ID:Eway,項目名稱:zf2-eav,代碼行數:17,代碼來源:EavTest.php

示例5: tearDown

 public function tearDown()
 {
     WidgetsList::getInstance()->_reset();
     MenuReporting::getInstance()->unsetInstance();
     Translate::unloadEnglishTranslation();
     unset($_GET['idSite']);
     parent::tearDown();
 }
開發者ID:Abine,項目名稱:piwik,代碼行數:8,代碼來源:ReportTest.php

示例6: tearDown

 public function tearDown()
 {
     parent::tearDown();
     Fixture::unloadAllPlugins();
 }
開發者ID:carriercomm,項目名稱:piwik,代碼行數:5,代碼來源:SegmentTest.php

示例7: tearDown

 public function tearDown()
 {
     $siteIdsToCleanup = new SharedSiteIds(array());
     $siteIdsToCleanup->setSiteIdsToArchive(array());
     parent::tearDown();
 }
開發者ID:a4tunado,項目名稱:piwik,代碼行數:6,代碼來源:SharedSiteIdsTest.php

示例8: tearDown

 public function tearDown()
 {
     EventDispatcher::getInstance()->clearObservers('Tracker.Request.getIdSite');
     parent::tearDown();
 }
開發者ID:a4tunado,項目名稱:piwik,代碼行數:5,代碼來源:Visit2Test.php

示例9: tearDown

 public function tearDown()
 {
     parent::tearDown();
 }
開發者ID:nomoto-ubicast,項目名稱:piwik,代碼行數:4,代碼來源:SqlTest.php

示例10: tearDown

 public function tearDown()
 {
     Piwik_PDFReports_API::$cache = array();
     parent::tearDown();
 }
開發者ID:nnnnathann,項目名稱:piwik,代碼行數:5,代碼來源:PDFReportsTest.php


注:本文中的DatabaseTestCase::tearDown方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。