@@ -90,32 +90,31 @@ public function dataExamples(): Generator
90
90
];
91
91
92
92
$ expectedOutput = <<<'OUTPUT'
93
- object(MongoDB\Examples\PersistableEntry)#%d (%d) {
94
- ["id":"MongoDB\Examples\PersistableEntry":private]=>
95
- object(MongoDB\BSON\ObjectId)#%d (%d) {
96
- ["oid"]=>
97
- string(24) "%s"
98
- }
99
- ["name"]=>
100
- string(7) "alcaeus"
101
- ["emails"]=>
102
- array(2) {
103
- [0]=>
104
- object(MongoDB\Examples\PersistableEmail)#%d (%d) {
105
- ["type"]=>
106
- string(4) "work"
107
- ["address"]=>
108
-
109
- }
110
- [1]=>
111
- object(MongoDB\Examples\PersistableEmail)#%d (%d) {
112
- ["type"]=>
113
- string(7) "private"
114
- ["address"]=>
115
-
116
- }
117
- }
118
- }
93
+ MongoDB\Examples\PersistableEntry Object
94
+ (
95
+ [id:MongoDB\Examples\PersistableEntry:private] => MongoDB\BSON\ObjectId Object
96
+ (
97
+ [oid] => %s
98
+ )
99
+
100
+ [name] => alcaeus
101
+ [emails] => Array
102
+ (
103
+ [0] => MongoDB\Examples\PersistableEmail Object
104
+ (
105
+ [type] => work
106
+
107
+ )
108
+
109
+ [1] => MongoDB\Examples\PersistableEmail Object
110
+ (
111
+ [type] => private
112
+
113
+ )
114
+
115
+ )
116
+
117
+ )
119
118
OUTPUT;
120
119
121
120
yield 'persistable ' => [
@@ -124,32 +123,31 @@ public function dataExamples(): Generator
124
123
];
125
124
126
125
$ expectedOutput = <<<'OUTPUT'
127
- object(MongoDB\Examples\TypeMapEntry)#%d (%d) {
128
- ["id":"MongoDB\Examples\TypeMapEntry":private]=>
129
- object(MongoDB\BSON\ObjectId)#%d (%d) {
130
- ["oid"]=>
131
- string(24) "%s"
132
- }
133
- ["name":"MongoDB\Examples\TypeMapEntry":private]=>
134
- string(7) "alcaeus"
135
- ["emails":"MongoDB\Examples\TypeMapEntry":private]=>
136
- array(2) {
137
- [0]=>
138
- object(MongoDB\Examples\TypeMapEmail)#%d (%d) {
139
- ["type":"MongoDB\Examples\TypeMapEmail":private]=>
140
- string(4) "work"
141
- ["address":"MongoDB\Examples\TypeMapEmail":private]=>
142
-
143
- }
144
- [1]=>
145
- object(MongoDB\Examples\TypeMapEmail)#%d (%d) {
146
- ["type":"MongoDB\Examples\TypeMapEmail":private]=>
147
- string(7) "private"
148
- ["address":"MongoDB\Examples\TypeMapEmail":private]=>
149
-
150
- }
151
- }
152
- }
126
+ MongoDB\Examples\TypeMapEntry Object
127
+ (
128
+ [id:MongoDB\Examples\TypeMapEntry:private] => MongoDB\BSON\ObjectId Object
129
+ (
130
+ [oid] => %s
131
+ )
132
+
133
+ [name:MongoDB\Examples\TypeMapEntry:private] => alcaeus
134
+ [emails:MongoDB\Examples\TypeMapEntry:private] => Array
135
+ (
136
+ [0] => MongoDB\Examples\TypeMapEmail Object
137
+ (
138
+ [type:MongoDB\Examples\TypeMapEmail:private] => work
139
+ [address:MongoDB\Examples\TypeMapEmail:private] => [email protected]
140
+ )
141
+
142
+ [1] => MongoDB\Examples\TypeMapEmail Object
143
+ (
144
+ [type:MongoDB\Examples\TypeMapEmail:private] => private
145
+ [address:MongoDB\Examples\TypeMapEmail:private] => [email protected]
146
+ )
147
+
148
+ )
149
+
150
+ )
153
151
OUTPUT;
154
152
155
153
yield 'typemap ' => [
0 commit comments