[PhpUnitBridge] Fix error with ReflectionClass
This commit is contained in:
parent
61c1175d05
commit
ed1bffeed7
@ -109,7 +109,7 @@ class CoverageListenerTrait
|
|||||||
|
|
||||||
// Exclude internal classes; PHPUnit 9.1+ is picky about tests covering, say, a \RuntimeException
|
// Exclude internal classes; PHPUnit 9.1+ is picky about tests covering, say, a \RuntimeException
|
||||||
$covers = array_filter($covers, function ($class) {
|
$covers = array_filter($covers, function ($class) {
|
||||||
$reflector = new ReflectionClass($class);
|
$reflector = new \ReflectionClass($class);
|
||||||
|
|
||||||
return $reflector->isUserDefined();
|
return $reflector->isUserDefined();
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user