Skip to content

Commit

Permalink
Leftover from a1d0515
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 24, 2020
1 parent a1d0515 commit 5ce4160
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 130 deletions.
2 changes: 1 addition & 1 deletion build/scripts/generate-global-assert-wrappers.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
$usedClasses[] = $returnType->getName();

$constraintMethods .= \sprintf(
"%s\n{\n return Assert::%s(...\\func_get_args());\n}\n\n",
"if (!function_exists('PHPUnit\Framework\\" . $method->getName() . "')) {\n%s\n{\n return Assert::%s(...\\func_get_args());\n}\n}\n\n",
\str_replace('public static ', '', \trim($lines[$method->getStartLine() - 1])),
$method->getName()
);
Expand Down
Loading

0 comments on commit 5ce4160

Please sign in to comment.