8000 [PhpUnitBridge] Fixed fatal error in CoverageListener when something … · symfony/symfony@537739f · GitHub
[go: up one dir, main page]

Skip to content

Commit 537739f

Browse files
committed
[PhpUnitBridge] Fixed fatal error in CoverageListener when something goes wrong in Test::setUpBeforeClass
1 parent 2e3df94 commit 537739f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ public function __construct(callable $sutFqcnResolver = null, $warningOnSutNotFo
3636

3737
public function startTest($test)
3838
{
39+
if (!method_exists($test, 'getAnnotations')) {
40+
return;
41+
}
42+
3943
$annotations = $test->getAnnotations();
4044

4145
$ignoredAnnotations = array('covers', 'coversDefaultClass', 'coversNothing');

0 commit comments

Comments
 (0)
0