From 3464861dc95cfc600251abcfed7752fc73d6a761 Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 5 May 2020 18:15:52 +0200 Subject: [PATCH] CI fixes --- Legacy/SymfonyTestsListenerTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Legacy/SymfonyTestsListenerTrait.php b/Legacy/SymfonyTestsListenerTrait.php index 21cdfa97..00433b16 100644 --- a/Legacy/SymfonyTestsListenerTrait.php +++ b/Legacy/SymfonyTestsListenerTrait.php @@ -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); }