Skip to content

Commit

Permalink
Do not consider a test as risky when it is expected to not perform as…
Browse files Browse the repository at this point in the history
…sertions
  • Loading branch information
sebastianbergmann committed Apr 14, 2023
1 parent 5a477ae commit b771002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Framework/TestRunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public function run(TestCase $test): void
$test->addToAssertionCount(Assert::getCount());

if ($this->configuration->reportUselessTests() &&
!$test->doesNotPerformAssertions() &&
$test->numberOfAssertionsPerformed() === 0) {
$risky = true;
}
Expand Down

0 comments on commit b771002

Please sign in to comment.