public function onNotSuccessfulTest(Exception $e) { if ($e instanceof Horde_Imap_Client_Exception) { $e->setMessage($e->getMessage() . ' [' . self::$live->url . ']'); } parent::onNotSuccessfulTest($e); }
protected function onNotSuccessfulTest(\Exception $e) { if ($e instanceof PredictionException) { $e = new \PHPUnit_Framework_AssertionFailedError($e->getMessage(), $e->getCode(), $e); } return parent::onNotSuccessfulTest($e); }
protected function onNotSuccessfulTest(\Exception $e) { if ($e instanceof UnsupportedDriverActionException) { $this->markTestSkipped($e->getMessage()); } parent::onNotSuccessfulTest($e); }
protected function onNotSuccessfulTest($e) { if ($e instanceof CM_Exception) { $e = new CMTest_ExceptionWrapper($e); } parent::onNotSuccessfulTest($e); }
protected function onNotSuccessfulTest(Exception $e) { if ($this->getStatus() != PHPUnit_Runner_BaseTestRunner::STATUS_SKIPPED) { if ($this->isCritical) { self::$skipAll = true; } if (!self::$isIT) { self::$skipIT = true; } } parent::onNotSuccessfulTest($e); }
public function onNotSuccessfulTest(Exception $e) { self::sessionStrategy()->notSuccessfulTest(); parent::onNotSuccessfulTest($e); }
public function onNotSuccessfulTest(Exception $e) { $this->getStrategy()->notSuccessfulTest(); parent::onNotSuccessfulTest($e); }
protected function onNotSuccessfulTest(Exception $exception) { // drops and reconnect to a redis server on uncaught exceptions RC::resetConnection(); parent::onNotSuccessfulTest($exception); }
protected function onNotSuccessfulTest(\Exception $e) { parent::onNotSuccessfulTest($e); $this->tearDown(); throw $e; }
protected function onNotSuccessfulTest(\Exception $e) { exec(sprintf('rm -rf %s 2>&1 > /dev/null', $this->modelPath)); parent::onNotSuccessfulTest($e); }
/** * On not successful * In case of an exeception $this->tearDown() will be called before processing this method anyways * * @throws PHPUnit_Framework_SyntheticError * @param Exception $e * @return void */ protected function onNotSuccessfulTest(Exception $e) { if (!($e instanceof PHPUnit_Framework_IncompleteTestError || $e instanceof PHPUnit_Framework_SkippedTestError) && $this->captureScreenshotOnFailure) { try { $this->takeScreenshot(get_class($e), PHPUnit_Framework_TestFailure::exceptionToString($e), Menta_Util_Screenshot::TYPE_ERROR, $e->getTrace()); } catch (Exception $screenshotException) { // if there's an exception while taking a screenshot because a test was not successful. That's bad luck :) throw new PHPUnit_Framework_SyntheticError($e->getMessage() . ' (AND: Exception while taking screenshot: ' . $screenshotException->getMessage() . ')', $e->getCode(), $e->getFile(), $e->getLine(), $e->getTrace()); } } parent::onNotSuccessfulTest($e); }
public function onNotSuccessfulTest(Exception $e) { $this->destroy_file_if_exists(NeechyConfig::app_config_path()); parent::onNotSuccessfulTest($e); }
/** * This method is called when a test method did not execute successfully. * * @param \Exception $e Exception. * * @return void */ protected function onNotSuccessfulTest(\Exception $e) { $this->_eventDispatcher->dispatch(self::TEST_FAILED_EVENT, new TestFailedEvent($e, $this, $this->_session)); parent::onNotSuccessfulTest($e); }
/** * @param Exception $e * * @throws Exception */ protected function onNotSuccessfulTest(Exception $e) { parent::onNotSuccessfulTest($e); }
/** * handle all test failures * * @var \Exception $e * @uses hadFailure */ protected function onNotSuccessfulTest($e) { echo $e->getMessage(); self::$hadFailure = true; parent::onNotSuccessfulTest($e); }
public function onNotSuccessfulTest(Exception $e) { self::$sharedSessionUrl = NULL; parent::onNotSuccessfulTest($e); }