Skip to content

Commit 122d1fd

Browse files
committed
Object IDs change, fix test
1 parent b52107c commit 122d1fd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/bson/bson-encode-003.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ foreach($tests as $n => $test) {
4444
?>
4545
===DONE===
4646
<?php exit(0); ?>
47-
--EXPECT--
47+
--EXPECTF--
4848
Test#0 { "stuff" : { "__pclass" : { "$type" : "80", "$binary" : "TXlDbGFzcw==" }, "random" : "class", "0" : "data" } }
4949
0 : 45 00 00 00 03 73 74 75 66 66 00 39 00 00 00 05 [E....stuff.9....]
5050
10 : 5f 5f 70 63 6c 61 73 73 00 07 00 00 00 80 4d 79 [__pclass......My]
@@ -53,7 +53,7 @@ Test#0 { "stuff" : { "__pclass" : { "$type" : "80", "$binary" : "TXlDbGFzcw==" }
5353
40 : 74 61 00 00 00 [ta...]
5454
array(1) {
5555
["stuff"]=>
56-
object(MyClass)#6 (1) {
56+
object(MyClass)#%d (1) {
5757
["props"]=>
5858
array(2) {
5959
["random"]=>
@@ -70,7 +70,7 @@ Test#1 { "stuff" : { "__pclass" : { "$type" : "80", "$binary" : "TXlDbGFzczI=" }
7070
30 : 02 00 00 00 10 32 00 03 00 00 00 00 00 [.....2.......]
7171
array(1) {
7272
["stuff"]=>
73-
object(MyClass2)#7 (1) {
73+
object(MyClass2)#%d (1) {
7474
["props"]=>
7575
array(3) {
7676
[0]=>
@@ -96,7 +96,7 @@ array(1) {
9696
["stuff"]=>
9797
array(2) {
9898
[0]=>
99-
object(MyClass)#6 (1) {
99+
object(MyClass)#%d (1) {
100100
["props"]=>
101101
array(2) {
102102
["random"]=>
@@ -106,7 +106,7 @@ array(1) {
106106
}
107107
}
108108
[1]=>
109-
object(MyClass2)#8 (1) {
109+
object(MyClass2)#%d (1) {
110110
["props"]=>
111111
array(3) {
112112
[0]=>

tests/bson/bson-encode-005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ array(2) {
2929
array(0) {
3030
}
3131
["emptyclass"]=>
32-
object(stdClass)#3 (0) {
32+
object(stdClass)#%d (0) {
3333
}
3434
}
3535
===DONE===

0 commit comments

Comments
 (0)