コード例 #1
0
ファイル: AppTestCase.php プロジェクト: felixonline/core
 public function tearDown()
 {
     parent::tearDown();
     $app = \FelixOnline\Core\App::getInstance();
     $app['db']->dbh->close();
     \FelixOnline\Core\App::setInstance(null);
 }
コード例 #2
0
ファイル: LogTest.php プロジェクト: carriercomm/piwik
 public function tearDown()
 {
     parent::tearDown();
     Log::unsetInstance();
     @unlink(self::getLogFileLocation());
     Error::$debugBacktraceForTests = ExceptionHandler::$debugBacktraceForTests = null;
 }
コード例 #3
0
ファイル: SettingsTest.php プロジェクト: a4tunado/piwik
 public function tearDown()
 {
     $this->setSuperUser();
     if ($this->settings) {
         $this->settings->removeAllPluginSettings();
     }
     parent::tearDown();
 }
コード例 #4
0
ファイル: EavTest.php プロジェクト: Eway/zf2-eav
 /**
  * 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
0
ファイル: ReportTest.php プロジェクト: Abine/piwik
 public function tearDown()
 {
     WidgetsList::getInstance()->_reset();
     MenuReporting::getInstance()->unsetInstance();
     Translate::unloadEnglishTranslation();
     unset($_GET['idSite']);
     parent::tearDown();
 }
コード例 #6
0
ファイル: SegmentTest.php プロジェクト: carriercomm/piwik
 public function tearDown()
 {
     parent::tearDown();
     Fixture::unloadAllPlugins();
 }
コード例 #7
0
ファイル: SharedSiteIdsTest.php プロジェクト: a4tunado/piwik
 public function tearDown()
 {
     $siteIdsToCleanup = new SharedSiteIds(array());
     $siteIdsToCleanup->setSiteIdsToArchive(array());
     parent::tearDown();
 }
コード例 #8
0
ファイル: Visit2Test.php プロジェクト: a4tunado/piwik
 public function tearDown()
 {
     EventDispatcher::getInstance()->clearObservers('Tracker.Request.getIdSite');
     parent::tearDown();
 }
コード例 #9
0
ファイル: SqlTest.php プロジェクト: nomoto-ubicast/piwik
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #10
0
ファイル: PDFReportsTest.php プロジェクト: nnnnathann/piwik
 public function tearDown()
 {
     Piwik_PDFReports_API::$cache = array();
     parent::tearDown();
 }