Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Jan 7, 2025
1 parent 10435d2 commit 06a72af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ext/pcre/tests/preg_replace_callback_array_trampoline.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $regexesToTest = [
],
[
'@\b\w{1,2}\b@' => $callback,
'~\A.~' => $trampolineThrow,
'~\A.~' => $callbackThrow,
],
[
'@\b\w{1,2}\b@' => $callback,
Expand Down Expand Up @@ -58,7 +58,6 @@ foreach ($regexesToTest as $regex) {

?>
--EXPECTF--
Warning: Undefined variable $trampolineThrow in %s on line %d
Trampoline for trampoline
Trampoline for trampoline
Trampoline for trampoline
Expand Down Expand Up @@ -91,10 +90,12 @@ Trampoline for trampoline
Trampoline for trampoline

Warning: Array to string conversion in %s on line %d
TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
Trampoline for trampolineThrow
Exception: boo
Trampoline for trampoline
Trampoline for trampoline
TypeError: preg_replace_callback_array(): Argument #1 ($pattern) must contain only valid callbacks
Trampoline for trampolineThrow
Exception: boo
Error: Object of class stdClass could not be converted to string
TypeError: preg_replace_callback_array(): Argument #2 ($subject) must be of type array|string, stdClass given
Trampoline for trampoline
Expand Down

0 comments on commit 06a72af

Please sign in to comment.