コード例 #1
0
ファイル: Functional.php プロジェクト: spryker/Transfer
 /**
  * @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();
     }
 }
コード例 #2
0
ファイル: Functional.php プロジェクト: spryker/Stock
 /**
  * @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();
     }
 }
コード例 #3
0
 /**
  * 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);
 }
コード例 #4
0
ファイル: CtrlC.php プロジェクト: natterbox/codeception-ctrlc
 public function _failed(TestCase $test, $fail)
 {
     $this->debug(__CLASS__ . '::_failed [' . $test->getName() . ']');
     $this->deinitSignalHandler();
     parent::_failed($test, $fail);
 }