Esempio n. 1
0
 /**
  * @param \Codeception\TestCase $test
  * @param bool $fail
  *
  * @return void
  */
 public function _failed(TestCase $test, $fail)
 {
     parent::_failed($test, $fail);
     if (session_status() === PHP_SESSION_ACTIVE) {
         session_destroy();
     }
 }
Esempio n. 2
0
 /**
  * @param \Codeception\TestCase $test
  * @param bool $fail
  *
  * @return void
  */
 public function _failed(TestCase $test, $fail)
 {
     parent::_failed($test, $fail);
     Propel::getWriteConnection('zed')->rollBack();
     if (session_status() === PHP_SESSION_ACTIVE) {
         session_destroy();
     }
 }
 /**
  * Failed test case hook
  *
  * @param TestCase $test test
  * @param mixed    $fail fail
  *
  * @return void
  */
 public function _failed(TestCase $test, $fail)
 {
     parent::_failed($test, $fail);
     $this->module->_failed($test, $fail);
 }
Esempio n. 4
0
 public function _failed(TestCase $test, $fail)
 {
     $this->debug(__CLASS__ . '::_failed [' . $test->getName() . ']');
     $this->deinitSignalHandler();
     parent::_failed($test, $fail);
 }