Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b771002

Browse files
Do not consider a test as risky when it is expected to not perform assertions
1 parent 5a477ae commit b771002

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Framework/TestRunner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ public function run(TestCase $test): void
132132
$test->addToAssertionCount(Assert::getCount());
133133

134134
if ($this->configuration->reportUselessTests() &&
135+
!$test->doesNotPerformAssertions() &&
135136
$test->numberOfAssertionsPerformed() === 0) {
136137
$risky = true;
137138
}

0 commit comments

Comments
 (0)