We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4aa00a + 32413ea commit f2a6aafCopy full SHA for f2a6aaf
PHP/CodeCoverage/Util.php
@@ -531,7 +531,8 @@ protected static function resolveCoversToReflectionObjects($coveredElement)
531
);
532
} else {
533
if (!((class_exists($className) ||
534
- interface_exists($className)) &&
+ interface_exists($className) ||
535
+ trait_exists($className)) &&
536
method_exists($className, $methodName))) {
537
throw new RuntimeException(
538
sprintf(
@@ -571,7 +572,8 @@ class_parents($coveredElement)
571
572
573
foreach ($classes as $className) {
574
if (!class_exists($className) &&
- !interface_exists($className)) {
575
+ !interface_exists($className) &&
576
+ !trait_exists($className)) {
577
578
579
'Trying to @cover not existing class or ' .
0 commit comments