diff --git a/src/Asserter.php b/src/Asserter.php index 58de681b..ba1564d1 100644 --- a/src/Asserter.php +++ b/src/Asserter.php @@ -12,10 +12,8 @@ protected function not(callable $callbable, $errorMessage) $callbable(); } catch (\Exception $e) { - return; + throw new ExpectationException($errorMessage, $this->getSession()->getDriver()); } - - throw new ExpectationException($errorMessage, $this->getSession()->getDriver()); } protected function assert($test, $message)