Skip to content

Commit

Permalink
fix: doNotThrowsExceptions being marked as incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Jan 25, 2024
1 parent 2d82ee2 commit 1d2fe2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factories/TestCaseMethodFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function __construct(
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();
Expand Down

0 comments on commit 1d2fe2d

Please sign in to comment.