@@ -80,7 +80,7 @@ public function testWrite(): void
80
80
->setMethodsExcept (['write ' ])
81
81
->getMock ();
82
82
$ mock ->expects ($ this ->exactly (1 ))->method ('writeToStdErr ' );
83
- $ record = ['any ' , 'level ' => Logger:: INFO ];
83
+ $ record = ['any ' , 'level ' => 0 ];
84
84
$ mock ->write ($ record );
85
85
$ mock ->write ($ record );
86
86
@@ -91,7 +91,7 @@ public function testWrite(): void
91
91
->getMock ();
92
92
$ mock ->expects ($ this ->exactly (2 ))->method ('writeToStdErr ' );
93
93
$ mock ->method ('getMessage ' )->willReturn ('{"first":"message"} ' , '{"first":"message"} ' ,'{"second":"message"} ' );
94
- $ record = ['any ' , 'level ' => Logger:: INFO ];
94
+ $ record = ['any ' , 'level ' => 0 ];
95
95
$ mock ->write ($ record );
96
96
$ mock ->write ($ record );
97
97
$ mock ->write ($ record );
@@ -211,12 +211,12 @@ public function providerDump(): Generator
211
211
];
212
212
yield [ // 9
213
213
'value ' => $ object ,
214
- 'expected ' => '{#262 +"foo": {#261 …1} +"bar": {#258 …1} } ' ,
214
+ 'expected ' => '{#262 +"foo": {#261 …1} +"bar": {#259 …1} } ' ,
215
215
'level ' => 1 ,
216
216
];
217
217
yield [
218
218
'value ' => $ object ,
219
- 'expected ' => '{#262 +"foo": {#261 +"baz": {#260} } +"bar": {#258 +"baz": {#259 } } } ' ,
219
+ 'expected ' => '{#262 +"foo": {#261 +"baz": {#260} } +"bar": {#259 +"baz": {#258 } } } ' ,
220
220
'level ' => 2 ,
221
221
];
222
222
$ value = [
@@ -239,7 +239,7 @@ public function providerDump(): Generator
239
239
];
240
240
yield [
241
241
'value ' => $ value ,
242
- 'expected ' => '[ "first-1" => "string" "first-2" => 12345 "first-3" => 1.2345 "first-4" => true "first-5" => [ "string" ] "first-6" => {#262 +"foo": {#261 …1} +"bar": {#258 …1} } ] ' ,
242
+ 'expected ' => '[ "first-1" => "string" "first-2" => 12345 "first-3" => 1.2345 "first-4" => true "first-5" => [ "string" ] "first-6" => {#262 +"foo": {#261 …1} +"bar": {#259 …1} } ] ' ,
243
243
'level ' => 2 ,
244
244
];
245
245
// тест на глубину - во что будут сериализованы многомерные массивы:
0 commit comments