예제 #1
0
 protected function tearDown()
 {
     parent::tearDown();
     while (ob_get_level() > $this->originalObLevel) {
         ob_end_flush();
     }
 }
예제 #2
0
 public function tearDown()
 {
     $_GET = array();
     $_POST = array();
     $_COOKIE = array();
     $_ENV = array();
     parent::tearDown();
 }
예제 #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();
 }
예제 #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();
 }
예제 #5
0
 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();
     }
 }
예제 #6
0
 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);
     }
 }
예제 #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);
 }
예제 #8
0
 /**
  * Runs after each test
  *
  * @return void
  */
 protected function tearDown()
 {
     parent::tearDown();
 }
예제 #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');
 }
예제 #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();
 }
예제 #11
0
 /**
  * Cleans up the environment after running a test.
  */
 protected function tearDown()
 {
     $this->config->clear();
     parent::tearDown();
 }
예제 #12
0
 /**
  * TearDown
  *
  * return void
  */
 protected function tearDown()
 {
     Config::getInstance()->clear();
     parent::tearDown();
 }
예제 #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();
 }
예제 #14
0
 protected function tearDown()
 {
     parent::tearDown();
     Application::getInstance()->clearI18nTranslator();
 }