Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

- Merge [5109].

  • Loading branch information...
commit c03e86ccd04c8c6a6a944993b4ca55adc112ce4d 1 parent 2a00fe3
@sebastianbergmann authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 PHPUnit/Util/Test.php
View
9 PHPUnit/Util/Test.php
@@ -329,9 +329,12 @@ private static function resolveCoversToReflectionObjects($coveredElement)
$classes = array($className);
foreach ($classes as $className) {
- $codeToCoverList[] = new ReflectionMethod(
- $className, $methodName
- );
+ if (class_exists($className) &&
+ method_exists($className, $methodName)) {
+ $codeToCoverList[] = new ReflectionMethod(
+ $className, $methodName
+ );
+ }
}
}
} else {
Please sign in to comment.
Something went wrong with that request. Please try again.