Skip to content

Commit

Permalink
Fix test expectation for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
remicollet committed Oct 1, 2024
1 parent e608bd4 commit c27d117
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/iterable/any_array.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool(true)
int(2)

*** Testing second argument to predicate ***
Caught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected
Caught ArgumentCountError: Too few arguments to function {closur%s}(), 1 passed and exactly 2 expected

*** Testing edge cases ***
bool(false)
Expand Down
6 changes: 3 additions & 3 deletions tests/iterable/fold_traversable.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ string(10) "helloworld"
string(12) "HELLO WORLD!"
string(12) "HELLO WORLD!"

Warning: {closure}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12
Warning: {closur%s}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12

Warning: {closure}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12
Warning: {closur%s}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12

Warning: {closure}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12
Warning: {closur%s}(): Argument #1 ($carry) must be passed by reference, value given in %s on line 12
string(12) "HELLO WORLD!"
2 changes: 1 addition & 1 deletion tests/iterable/none_array.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ bool(false)
int(2)

*** Testing second argument to predicate ***
Caught ArgumentCountError: Too few arguments to function {closure}(), 1 passed and exactly 2 expected
Caught ArgumentCountError: Too few arguments to function {closur%s}(), 1 passed and exactly 2 expected

*** Testing edge cases ***
bool(true)
Expand Down
8 changes: 4 additions & 4 deletions tests/misc/strict_hash.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ foreach ($values as $value) {
$all[$hash] = $value;
}
?>
--EXPECT--
--EXPECTF--
NULL
=> 0x06742e765a0a0214
bool(false)
Expand Down Expand Up @@ -153,10 +153,10 @@ object(stdClass)#1 (0) {
object(stdClass)#2 (0) {
}
=> 0xb8d3134c0b865909
object(Closure)#3 (0) {
object(Closure)#3 (%d) {%A
}
=> 0x91bcd0ffe3de8667
object(Closure)#4 (0) {
object(Closure)#4 (%d) {%A
}
=> 0x6aa58db3bc37b4c5
resource(1) of type (stream)
Expand All @@ -170,4 +170,4 @@ float(NAN)
float(NAN)
=> 0x6a289d03903422a8 (Already saw)
float(NAN)
=> 0x6a289d03903422a8 (Already saw)
=> 0x6a289d03903422a8 (Already saw)

0 comments on commit c27d117

Please # to comment.