From 1d2fe2de2d409ad0d3d4b9b903adb8f4e9cf3387 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Thu, 25 Jan 2024 14:08:33 +0000 Subject: [PATCH] fix: `doNotThrowsExceptions` being marked as incomplete --- src/Factories/TestCaseMethodFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Factories/TestCaseMethodFactory.php b/src/Factories/TestCaseMethodFactory.php index 4c42a557..341ec902 100644 --- a/src/Factories/TestCaseMethodFactory.php +++ b/src/Factories/TestCaseMethodFactory.php @@ -73,7 +73,7 @@ final class TestCaseMethodFactory public ?Closure $closure, ) { $this->closure ??= function (): void { - Assert::getCount() > 0 ?: self::markTestIncomplete(); // @phpstan-ignore-line + (Assert::getCount() > 0 || $this->doesNotPerformAssertions()) ?: self::markTestIncomplete(); // @phpstan-ignore-line }; $this->bootHigherOrderable();