We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aecdcb2 commit dc7281eCopy full SHA for dc7281e
src/Framework/TestCase.php
@@ -744,6 +744,14 @@ final public function runBare(): void
744
$this->invokeAfterClassHookMethods($hookMethods, $emitter);
745
}
746
747
+ } catch (AssertionError|AssertionFailedError $e) {
748
+ $this->status = TestStatus::failure($e->getMessage());
749
+
750
+ $emitter->testFailed(
751
+ $this->valueObjectForEvents(),
752
+ Event\Code\ThrowableBuilder::from($e),
753
+ Event\Code\ComparisonFailureBuilder::from($e),
754
+ );
755
} catch (Throwable $exceptionRaisedDuringTearDown) {
756
if (!isset($e)) {
757
$this->status = TestStatus::error($exceptionRaisedDuringTearDown->getMessage());
0 commit comments