当前位置: 首页>>代码示例>>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;未经允许,请勿转载。