Skip to content

Commit 5ce4160

Browse files
Leftover from a1d0515
1 parent a1d0515 commit 5ce4160

File tree

2 files changed

+216
-130
lines changed

2 files changed

+216
-130
lines changed

build/scripts/generate-global-assert-wrappers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
$usedClasses[] = $returnType->getName();
5959

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

0 commit comments

Comments
 (0)