Skip to content

Commit 06a72af

Browse files
committed
Fix test
1 parent 10435d2 commit 06a72af

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ext/pcre/tests/preg_replace_callback_array_trampoline.phpt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $regexesToTest = [
2323
],
2424
[
2525
'@\b\w{1,2}\b@' => $callback,
26-
'~\A.~' => $trampolineThrow,
26+
'~\A.~' => $callbackThrow,
2727
],
2828
[
2929
'@\b\w{1,2}\b@' => $callback,
@@ -58,7 +58,6 @@ foreach ($regexesToTest as $regex) {
5858

5959
?>
6060
--EXPECTF--
61-
Warning: Undefined variable $trampolineThrow in %s on line %d
6261
Trampoline for trampoline
6362
Trampoline for trampoline
6463
Trampoline for trampoline
@@ -91,10 +90,12 @@ Trampoline for trampoline
9190
Trampoline for trampoline
9291

9392
Warning: Array to string conversion in %s on line %d
94-
TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
93+
Trampoline for trampolineThrow
94+
Exception: boo
9595
Trampoline for trampoline
9696
Trampoline for trampoline
97-
TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
97+
Trampoline for trampolineThrow
98+
Exception: boo
9899
Error: Object of class stdClass could not be converted to string
99100
TypeError: preg_replace_callback_array(): Argument #2 ($subject) must be of type array|string, stdClass given
100101
Trampoline for trampoline

0 commit comments

Comments
 (0)