Skip to content

Commit

Permalink
Only use the first word after @use or @Covers
Browse files Browse the repository at this point in the history
Attempt to fix #1857
  • Loading branch information
David Stockton authored and sebastianbergmann committed Oct 5, 2015
1 parent 4ecd63c commit 475a73d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Util/Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ private static function getLinesToBeCoveredOrUsed($className, $methodName, $mode

$element = preg_replace('/[\s()]+$/', '', $element);

$element = explode(' ', $element)[0];

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

0 comments on commit 475a73d

Please # to comment.