Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed May 5, 2020
1 parent 2583bf8 commit 3464861
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Legacy/SymfonyTestsListenerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function endTest($test, $time)
$groups = Test::getGroups($className, $test->getName(false));

if ($this->checkNumAssertions) {
if (!self::$expectedDeprecations && !$test->getNumAssertions()) {
if (!self::$expectedDeprecations && !$test->getNumAssertions() && $test->getTestResultObject()->noneSkipped()) {
$test->getTestResultObject()->addFailure($test, new RiskyTestError('This test did not perform any assertions'), $time);
}

Expand Down

0 comments on commit 3464861

Please sign in to comment.