Esempio n. 1
0
 protected function tearDown()
 {
     parent::tearDown();
     while (ob_get_level() > $this->originalObLevel) {
         ob_end_flush();
     }
 }
Esempio n. 2
0
 public function tearDown()
 {
     $_GET = array();
     $_POST = array();
     $_COOKIE = array();
     $_ENV = array();
     parent::tearDown();
 }
Esempio n. 3
0
 /**
  * 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();
 }
Esempio n. 4
0
 /**
  * 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);
     }
 }
Esempio n. 7
0
 /**
  * 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();
 }
Esempio n. 9
0
 /**
  * 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');
 }
Esempio n. 10
0
 /**
  * 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();
 }
Esempio n. 11
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     $this->config->clear();
     parent::tearDown();
 }
Esempio n. 12
0
 /**
  * TearDown
  *
  * return void
  */
 protected function tearDown()
 {
     Config::getInstance()->clear();
     parent::tearDown();
 }
Esempio n. 13
0
 /**
  * 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();
 }
Esempio n. 14
0
 protected function tearDown()
 {
     parent::tearDown();
     Application::getInstance()->clearI18nTranslator();
 }