Skip to content

Commit 333989a

Browse files
committed
Fix test expectations for PHP 8.4
1 parent dfbc79a commit 333989a

6 files changed

+18
-18
lines changed

tests/closure-ts-this.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ $thread->start(\pmmp\thread\Thread::INHERIT_ALL);
2929
$thread->join();
3030

3131
?>
32-
--EXPECT--
33-
object(Closure)#4 (1) {
32+
--EXPECTF--
33+
object(Closure)#4 (%d) {%A
3434
["this"]=>
3535
object(A)#3 (0) {
3636
}

tests/closure-with-use-wrapped.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ $closureWithUse = static function () use ($test): void{
4040
};
4141
wrap($closureWithUse, $worker);
4242
?>
43-
--EXPECT--
44-
object(Closure)#4 (0) {
43+
--EXPECTF--
44+
object(Closure)#4 (%d) {%A
4545
}
46-
object(Closure)#7 (1) {
46+
object(Closure)#7 (%d) {%A
4747
["static"]=>
4848
array(1) {
4949
["test"]=>

tests/lexical-vars.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ string(5) "thing"
5151
NULL
5252
object(pmmp\thread\ThreadSafeArray)#3 (0) {
5353
}
54-
object(Closure)#4 (0) {
54+
object(Closure)#4 (%d) {%A
5555
}
5656
array(5) {
5757
[0]=>

tests/new-in-attributes.phpt

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ $w->start(\pmmp\thread\Thread::INHERIT_ALL) && $w->join();
2828
test();
2929

3030
?>
31-
--EXPECT--
31+
--EXPECTF--
3232
array(1) {
3333
[0]=>
34-
object(Attr)#4 (1) {
34+
object(Attr)#%d (1) {
3535
["object"]=>
36-
object(stdClass)#6 (0) {
36+
object(stdClass)#%d (0) {
3737
}
3838
}
3939
}
4040
array(1) {
4141
[0]=>
42-
object(Attr)#4 (1) {
42+
object(Attr)#%d (1) {
4343
["object"]=>
44-
object(stdClass)#6 (0) {
44+
object(stdClass)#%d (0) {
4545
}
4646
}
4747
}

tests/readonly-properties.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ $t->start(\pmmp\thread\Thread::INHERIT_ALL) && $t->join();
4141

4242
test();
4343
?>
44-
--EXPECT--
44+
--EXPECTF--
4545
int(1)
4646
string(40) "Cannot modify readonly property Test::$a"
47-
string(62) "Cannot initialize readonly property Test::$b from global scope"
47+
string(%d) "Cannot %s readonly property Test::$b from global scope"
4848
int(1)
4949
string(40) "Cannot modify readonly property Test::$a"
50-
string(62) "Cannot initialize readonly property Test::$b from global scope"
50+
string(%d) "Cannot %s readonly property Test::$b from global scope"

tests/var-dump-consistency.phpt

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ var_dump($t["sock"]);
1313
var_dump($t);
1414

1515
?>
16-
--EXPECT--
16+
--EXPECTF--
1717
object(stdClass)#4 (0) {
1818
}
1919
object(pmmp\thread\ThreadSafeArray)#2 (1) {
2020
["sock"]=>
21-
object(Closure)#3 (0) {
21+
object(Closure)#3 (%d) {%A
2222
}
2323
}
24-
object(Closure)#3 (0) {
24+
object(Closure)#3 (%d) {%A
2525
}
2626
object(pmmp\thread\ThreadSafeArray)#2 (1) {
2727
["sock"]=>
28-
object(Closure)#3 (0) {
28+
object(Closure)#3 (%d) {%A
2929
}
3030
}

0 commit comments

Comments
 (0)