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();