From e4ed1185ca69bdff40853f1bc25161742611d77f Mon Sep 17 00:00:00 2001 From: Daniel Badura Date: Fri, 3 Jan 2025 13:02:07 +0100 Subject: [PATCH] Dont catch internal exceptions from test case --- src/Test/AggregateRootTestCase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Test/AggregateRootTestCase.php b/src/Test/AggregateRootTestCase.php index 33da1509..757c2d4b 100644 --- a/src/Test/AggregateRootTestCase.php +++ b/src/Test/AggregateRootTestCase.php @@ -93,6 +93,8 @@ public function assert(): self $aggregate = $return; } + } catch (AggregateTestError $exception) { + throw $exception; } catch (Throwable $throwable) { $this->handleException($throwable); }