Skip to content

Commit

Permalink
Initial work on #3195
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 10, 2018
1 parent b0afce3 commit 1dd9b94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Util/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,15 @@ private static function getLinesToBeCoveredOrUsed(string $className, string $met
$element = \explode(' ', $element);
$element = $element[0];

if ($mode === 'covers' && \interface_exists($element)) {
throw new InvalidCoversTargetException(
\sprintf(
'Trying to @cover interface "%s".',
$className
)
);
}

$codeList = \array_merge(
$codeList,
self::resolveElementToReflectionObjects($element)
Expand Down

0 comments on commit 1dd9b94

Please sign in to comment.