File tree 1 file changed +3
-9
lines changed
Filter options
src/Symfony/Component/Yaml/Tests
1 file changed +3
-9
lines changed
Original file line number Diff line number Diff line change @@ -2381,19 +2381,13 @@ public function testParsingMultipleDocuments()
2381
2381
c: d
2382
2382
YAML ;
2383
2383
2384
- $ expected = ['a ' => ['b ' => "row \nrow2 \n" ], 'c ' => 'd ' ];
2385
-
2386
- // The parser was not used before, so there is a new line after row2
2387
- $ this ->assertSame ($ expected , $ this ->parser ->parse ($ longDocument ));
2388
-
2389
- $ parser = new Parser ();
2390
2384
// The first parsing set and fixed the totalNumberOfLines in the Parser before, so parsing the short document here
2391
2385
// to reproduce the issue. If the issue would not have been fixed, the next assertion will fail
2392
- $ parser ->parse ($ shortDocument );
2386
+ $ this -> parser ->parse ($ shortDocument );
2393
2387
2394
- // After the total number of lines has been rset the result will be the same as if a new parser was used
2388
+ // After the total number of lines has been reset the result will be the same as if a new parser was used
2395
2389
// (before, there was no \n after row2)
2396
- $ this ->assertSame ($ expected , $ parser ->parse ($ longDocument ));
2390
+ $ this ->assertSame ([ ' a ' => [ ' b ' => " row \n row2 \n" ], ' c ' => ' d ' ], $ this -> parser ->parse ($ longDocument ));
2397
2391
}
2398
2392
}
2399
2393
You can’t perform that action at this time.
0 commit comments