fix: doNotThrowsExceptions being marked as incomplete

This commit is contained in:
Nuno Maduro
2024-01-25 14:08:33 +00:00
parent 2d82ee2837
commit 1d2fe2de2d

View File

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