protected function tearDown() { parent::tearDown(); while (ob_get_level() > $this->originalObLevel) { ob_end_flush(); } }
public function tearDown() { $_GET = array(); $_POST = array(); $_COOKIE = array(); $_ENV = array(); parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { if (!empty($this->subject)) { $this->subject->query('DROP TABLE IF EXISTS test'); } $this->subject = null; parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { if (!empty($this->config)) { $this->config->clear(); } $this->config = null; DbFactory::clearConnections(); parent::tearDown(); }
protected function tearDown() { parent::tearDown(); Config::getInstance()->clear(); $application = Application::getInstance(); $application->setDiContainer($this->originalDiContainer); $application->clearI18nTranslator(); while (ob_get_level() > $this->originalObLevel) { ob_end_flush(); } }
protected function tearDown() { parent::tearDown(); $testPath = getenv('YAPEPBASE_TEST_TEMPPATH'); if (empty($testPath)) { return; } if (file_exists($testPath)) { $fileHandler = new FileHandlerPhp(); $fileHandler->removeDirectory($testPath, true); } }
/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { parent::tearDown(); Application::getInstance()->setDiContainer($this->originalDiContainer); }
/** * Runs after each test * * @return void */ protected function tearDown() { parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { parent::tearDown(); if (!$this->isRunnable || empty($this->connection)) { return; } $this->connection->query('DROP TABLE IF EXISTS test'); $this->connection->query('DROP TABLE IF EXISTS test2'); }
/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. * * @return void */ protected function tearDown() { Config::getInstance()->clear(); Application::getInstance()->getDiContainer()->getEventHandlerRegistry()->clearAll(); parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { $this->config->clear(); parent::tearDown(); }
/** * TearDown * * return void */ protected function tearDown() { Config::getInstance()->clear(); parent::tearDown(); }
/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. */ protected function tearDown() { parent::tearDown(); $this->cleanupTestDirectory(); }
protected function tearDown() { parent::tearDown(); Application::getInstance()->clearI18nTranslator(); }