Skip to content

Commit

Permalink
Fix test expectations with regard to pretty names of closures
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Aug 3, 2024
1 parent 18485ec commit 24d1bc7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions tests/002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ var_dump(uopz_set_return(Foo::class, "bazQuux", function(){}));

var_dump(uopz_get_return(Foo::class, "bazQuux"));
?>
--EXPECT--
--EXPECTF--
bool(true)
bool(true)
bool(true)
object(Closure)#1 (0) {
object(Closure)#1 (%d) {%A
}
NULL
bool(true)
bool(true)
bool(true)
object(Closure)#2 (0) {
object(Closure)#2 (%d) {%A
}
6 changes: 3 additions & 3 deletions tests/003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ var_dump(uopz_unset_return("bar"));

var_dump(uopz_get_return(DateTime::class, "__construct"));
?>
--EXPECT--
--EXPECTF--
bool(true)
bool(true)
bool(true)
bool(false)
bool(false)
bool(true)
object(Closure)#2 (0) {
}
object(Closure)#2 (%d) {
%A}
bool(true)
bool(true)
NULL
6 changes: 3 additions & 3 deletions tests/010.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ var_dump(uopz_get_hook("none"));

var_dump(uopz_get_hook(DateTime::class, "__construct"));
?>
--EXPECT--
--EXPECTF--
bool(true)
object(Closure)#1 (1) {
object(Closure)#1 (%d) {%A
["parameter"]=>
array(1) {
["$arg"]=>
string(10) "<required>"
}
}
object(Closure)#2 (0) {
object(Closure)#2 (%d) {%A
}
NULL
NULL
4 changes: 2 additions & 2 deletions tests/bugs/gh99.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ var_dump(Stub());

var_dump($a);
?>
--EXPECT--
--EXPECTF--
string(11) "hook called"
int(123)
object(Closure)#1 (0) {
object(Closure)#1 (%d) {%A
}

0 comments on commit 24d1bc7

Please sign in to comment.