/** * @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(); } }
/** * @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); }
public function _failed(TestCase $test, $fail) { $this->debug(__CLASS__ . '::_failed [' . $test->getName() . ']'); $this->deinitSignalHandler(); parent::_failed($test, $fail); }