8000 Iterate over tests · greg0ire/symfony@f774340 · GitHub
[go: up one dir, main page]

Skip to content

Commit f774340

Browse files
committed
Iterate over tests
Calling the trait with a TestSuite argument will have no effect, it will exit quickly because of a test added in 25e0117, that checks that $suite is a TestCase instance. Refs symfony#26612
1 parent 68c869b commit f774340

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Bridge/PhpUnit/Legacy/CoverageListenerForV7.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFo
3636

3737
public function startTestSuite(TestSuite $suite): void
3838
{
39-
$this->trait->startTest($suite);
39+
foreach ($suite->tests() as $test) {
40+
$this->trait->startTest($test);
41+
}
4042
}
4143
}

0 commit comments

Comments
 (0)
0