@@ -1155,7 +1155,7 @@ public function testNestedFoldedStringBlockWithComments()
1155
1155
</body>
1156
1156
1157
1157
footer # comment3
1158
- EOT
1158
+ EOT,
1159
1159
]], Yaml::parse (<<<'EOF'
1160
1160
-
1161
1161
title: some title
@@ -1495,13 +1495,13 @@ public static function getBinaryData()
1495
1495
<<<'EOT'
1496
1496
data: !!binary |
1497
1497
SGVsbG8gd29ybGQ=
1498
- EOT
1498
+ EOT,
1499
1499
],
1500
1500
'containing spaces in block scalar ' => [
1501
1501
<<<'EOT'
1502
1502
data: !!binary |
1503
1503
SGVs bG8gd 29ybGQ=
1504
- EOT
1504
+ EOT,
1505
1505
],
1506
1506
];
1507
1507
}
@@ -1602,7 +1602,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
1602
1602
-
1603
1603
# bar
1604
1604
bar: "123",
1605
- YAML
1605
+ YAML,
1606
1606
],
1607
1607
[
1608
1608
5 ,
@@ -1612,7 +1612,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
1612
1612
# bar
1613
1613
# bar
1614
1614
bar: "123",
1615
- YAML
1615
+ YAML,
1616
1616
],
1617
1617
[
1618
1618
8 ,
@@ -1625,7 +1625,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
1625
1625
-
1626
1626
# bar
1627
1627
bar: "123",
1628
- YAML
1628
+ YAML,
1629
1629
],
1630
1630
[
1631
1631
10 ,
@@ -1640,7 +1640,7 @@ public static function parserThrowsExceptionWithCorrectLineNumberProvider()
1640
1640
# bar
1641
1641
# bar
1642
1642
bar: "123",
1643
- YAML
1643
+ YAML,
1644
1644
],
1645
1645
];
1646
1646
}
@@ -1940,7 +1940,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
1940
1940
<<<YAML
1941
1941
[ foo, [bar, baz]
1942
1942
]
1943
- YAML
1943
+ YAML ,
1944
1944
],
1945
1945
'nested sequence spanning multiple lines ' => [
1946
1946
[
@@ -1952,7 +1952,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
1952
1952
['entry1', {}],
1953
1953
['entry2']
1954
1954
]
1955
- YAML
1955
+ YAML ,
1956
1956
],
1957
1957
'sequence nested in mapping ' => [
1958
1958
['foo ' => ['bar ' , 'foobar ' ], 'bar ' => ['baz ' ]],
@@ -1994,7 +1994,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
1994
1994
bar,
1995
1995
]
1996
1996
bar: baz
1997
- YAML
1997
+ YAML ,
1998
1998
],
1999
1999
'nested sequence nested in mapping starting on the same line ' => [
2000
2000
[
@@ -2121,7 +2121,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2121
2121
foo: 'bar
2122
2122
2123
2123
baz'
2124
- YAML
2124
+ YAML ,
2125
2125
],
2126
2126
'mixed mapping with inline notation having separated lines ' => [
2127
2127
[
@@ -2137,7 +2137,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2137
2137
a: "b"
2138
2138
}
2139
2139
param: "some"
2140
- YAML
2140
+ YAML ,
2141
2141
],
2142
2142
'mixed mapping with inline notation on one line ' => [
2143
2143
[
@@ -2150,7 +2150,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2150
2150
<<<YAML
2151
2151
map: {key: "value", a: "b"}
2152
2152
param: "some"
2153
- YAML
2153
+ YAML ,
2154
2154
],
2155
2155
'mixed mapping with compact inline notation on one line ' => [
2156
2156
[
@@ -2164,7 +2164,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2164
2164
map: {key: "value",
2165
2165
a: "b"}
2166
2166
param: "some"
2167
- YAML
2167
+ YAML ,
2168
2168
],
2169
2169
'nested collections containing strings with bracket chars ' => [
2170
2170
[
@@ -2204,7 +2204,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2204
2204
foo: 'bar}'
2205
2205
}
2206
2206
]
2207
- YAML
2207
+ YAML ,
2208
2208
],
2209
2209
'escaped characters in quoted strings ' => [
2210
2210
[
@@ -2225,7 +2225,7 @@ public static function inlineNotationSpanningMultipleLinesProvider(): array
2225
2225
['te''st'],
2226
2226
["te \"st]"]
2227
2227
]
2228
- YAML
2228
+ YAML ,
2229
2229
],
2230
2230
];
2231
2231
}
@@ -2276,15 +2276,15 @@ public static function taggedValuesProvider()
2276
2276
quz: !long >
2277
2277
this is a long
2278
2278
text
2279
- YAML
2279
+ YAML ,
2280
2280
],
2281
2281
'sequences ' => [
2282
2282
[new TaggedValue ('foo ' , ['yaml ' ]), new TaggedValue ('quz ' , ['bar ' ])],
2283
2283
<<<YAML
2284
2284
- !foo
2285
2285
- yaml
2286
2286
- !quz [bar]
2287
- YAML
2287
+ YAML ,
2288
2288
],
2289
2289
'mappings ' => [
2290
2290
new TaggedValue ('foo ' , ['foo ' => new TaggedValue ('quz ' , ['bar ' ]), 'quz ' => new TaggedValue ('foo ' , ['quz ' => 'bar ' ])]),
@@ -2293,14 +2293,14 @@ public static function taggedValuesProvider()
2293
2293
foo: !quz [bar]
2294
2294
quz: !foo
2295
2295
quz: bar
2296
- YAML
2296
+ YAML ,
2297
2297
],
2298
2298
'inline ' => [
2299
2299
[new TaggedValue ('foo ' , ['foo ' , 'bar ' ]), new TaggedValue ('quz ' , ['foo ' => 'bar ' , 'quz ' => new TaggedValue ('bar ' , ['one ' => 'bar ' ])])],
2300
2300
<<<YAML
2301
2301
- !foo [foo, bar]
2302
2302
- !quz {foo: bar, quz: !bar {one: bar}}
2303
- YAML
2303
+ YAML ,
2304
2304
],
2305
2305
'spaces-around-tag-value-in-sequence ' => [
2306
2306
[new TaggedValue ('foo ' , 'bar ' )],
@@ -2316,7 +2316,7 @@ public static function taggedValuesProvider()
2316
2316
baz
2317
2317
#bar
2318
2318
]]
2319
- YAML
2319
+ YAML ,
2320
2320
],
2321
2321
'with-comments-trailing-comma ' => [
2322
2322
[
@@ -2328,7 +2328,7 @@ public static function taggedValuesProvider()
2328
2328
baz,
2329
2329
#bar
2330
2330
]]
2331
- YAML
2331
+ YAML ,
2332
2332
],
2333
2333
];
2334
2334
}
0 commit comments