@@ -1155,7 +1155,7 @@ public function testNestedFoldedStringBlockWithComments()
11551155 </body>
11561156
11571157footer # comment3
1158- EOT
1158+ EOT,
11591159 ]], Yaml::parse (<<<'EOF'
11601160-
11611161 title: some title
@@ -1495,13 +1495,13 @@ public static function getBinaryData()
14951495 <<<'EOT'
14961496data: !!binary |
14971497 SGVsbG8gd29ybGQ=
1498- EOT
1498+ EOT,
14991499 ],
15001500 'containing spaces in block scalar ' => [
15011501 <<<'EOT'
15021502data: !!binary |
15031503 SGVs bG8gd 29ybGQ=
1504- EOT
1504+ EOT,
15051505 ],
15061506 ];
15071507 }
@@ -1602,7 +1602,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
16021602 -
16031603 # bar
16041604 bar: "123",
1605- YAML
1605+ YAML,
16061606 ],
16071607 [
16081608 5 ,
@@ -1612,7 +1612,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
16121612 # bar
16131613 # bar
16141614 bar: "123",
1615- YAML
1615+ YAML,
16161616 ],
16171617 [
16181618 8 ,
@@ -1625,7 +1625,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
16251625 -
16261626 # bar
16271627 bar: "123",
1628- YAML
1628+ YAML,
16291629 ],
16301630 [
16311631 10 ,
@@ -1640,7 +1640,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
16401640 # bar
16411641 # bar
16421642 bar: "123",
1643- YAML
1643+ YAML,
16441644 ],
16451645 ];
16461646 }
@@ -1940,7 +1940,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
19401940 <<<YAML
19411941[ foo, [bar, baz]
19421942]
1943- YAML
1943+ YAML ,
19441944 ],
19451945 'nested sequence spanning multiple lines ' => [
19461946 [
@@ -1952,7 +1952,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
19521952 ['entry1', {}],
19531953 ['entry2']
19541954]
1955- YAML
1955+ YAML ,
19561956 ],
19571957 'sequence nested in mapping ' => [
19581958 ['foo ' => ['bar ' , 'foobar ' ], 'bar ' => ['baz ' ]],
@@ -1994,7 +1994,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
19941994 bar,
19951995]
19961996bar: baz
1997- YAML
1997+ YAML ,
19981998 ],
19991999 'nested sequence nested in mapping starting on the same line ' => [
20002000 [
@@ -2121,7 +2121,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21212121foo: 'bar
21222122
21232123baz'
2124- YAML
2124+ YAML ,
21252125 ],
21262126 'mixed mapping with inline notation having separated lines ' => [
21272127 [
@@ -2137,7 +2137,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21372137 a: "b"
21382138}
21392139param: "some"
2140- YAML
2140+ YAML ,
21412141 ],
21422142 'mixed mapping with inline notation on one line ' => [
21432143 [
@@ -2150,7 +2150,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21502150 <<<YAML
21512151map: {key: "value", a: "b"}
21522152param: "some"
2153- YAML
2153+ YAML ,
21542154 ],
21552155 'mixed mapping with compact inline notation on one line ' => [
21562156 [
@@ -2164,7 +2164,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
21642164map: {key: "value",
21652165a: "b"}
21662166param: "some"
2167- YAML
2167+ YAML ,
21682168 ],
21692169 'nested collections containing strings with bracket chars ' => [
21702170 [
@@ -2204,7 +2204,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
22042204 foo: 'bar}'
22052205 }
22062206]
2207- YAML
2207+ YAML ,
22082208 ],
22092209 'escaped characters in quoted strings ' => [
22102210 [
@@ -2225,7 +2225,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
22252225 ['te''st'],
22262226 ["te \"st]"]
22272227]
2228- YAML
2228+ YAML ,
22292229 ],
22302230 ];
22312231 }
@@ -2276,15 +2276,15 @@ public static function taggedValuesProvider()
22762276quz: !long >
22772277 this is a long
22782278 text
2279- YAML
2279+ YAML ,
22802280 ],
22812281 'sequences ' => [
22822282 [new TaggedValue ('foo ' , ['yaml ' ]), new TaggedValue ('quz ' , ['bar ' ])],
22832283 <<<YAML
22842284- !foo
22852285 - yaml
22862286- !quz [bar]
2287- YAML
2287+ YAML ,
22882288 ],
22892289 'mappings ' => [
22902290 new TaggedValue ('foo ' , ['foo ' => new TaggedValue ('quz ' , ['bar ' ]), 'quz ' => new TaggedValue ('foo ' , ['quz ' => 'bar ' ])]),
@@ -2293,14 +2293,14 @@ public static function taggedValuesProvider()
22932293foo: !quz [bar]
22942294quz: !foo
22952295 quz: bar
2296- YAML
2296+ YAML ,
22972297 ],
22982298 'inline ' => [
22992299 [new TaggedValue ('foo ' , ['foo ' , 'bar ' ]), new TaggedValue ('quz ' , ['foo ' => 'bar ' , 'quz ' => new TaggedValue ('bar ' , ['one ' => 'bar ' ])])],
23002300 <<<YAML
23012301- !foo [foo, bar]
23022302- !quz {foo: bar, quz: !bar {one: bar}}
2303- YAML
2303+ YAML ,
23042304 ],
23052305 'spaces-around-tag-value-in-sequence ' => [
23062306 [new TaggedValue ('foo ' , 'bar ' )],
@@ -2316,7 +2316,7 @@ public static function taggedValuesProvider()
23162316 baz
23172317 #bar
23182318 ]]
2319- YAML
2319+ YAML ,
23202320 ],
23212321 'with-comments-trailing-comma ' => [
23222322 [
@@ -2328,7 +2328,7 @@ public static function taggedValuesProvider()
23282328 baz,
23292329 #bar
23302330 ]]
2331- YAML
2331+ YAML ,
23322332 ],
23332333 ];
23342334 }
0 commit comments