@@ -421,7 +421,7 @@ public function testBlockLiteralWithLeadingNewlines()
421
421
422
422
public function testObjectSupportEnabled ()
423
423
{
424
- $ input = <<<EOF
424
+ $ input = <<<' EOF'
425
425
foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
426
426
bar: 1
427
427
EOF;
@@ -433,7 +433,7 @@ public function testObjectSupportEnabled()
433
433
*/
434
434
public function testObjectSupportEnabledPassingTrue ()
435
435
{
436
- $ input = <<<EOF
436
+ $ input = <<<' EOF'
437
437
foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
438
438
bar: 1
439
439
EOF;
@@ -445,7 +445,7 @@ public function testObjectSupportEnabledPassingTrue()
445
445
*/
446
446
public function testObjectSupportEnabledWithDeprecatedTag ()
447
447
{
448
- $ input = <<<EOF
448
+ $ input = <<<' EOF'
449
449
foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
450
450
bar: 1
451
451
EOF;
@@ -481,7 +481,7 @@ public function getObjectForMapTests()
481
481
{
482
482
$ tests = array ();
483
483
484
- $ yaml = <<<EOF
484
+ $ yaml = <<<' EOF'
485
485
foo:
486
486
fiz: [cat]
487
487
EOF;
@@ -502,7 +502,7 @@ public function getObjectForMapTests()
502
502
$ expected ->baz = 'foobar ' ;
503
503
$ tests ['object-for-map-is-applied-after-parsing ' ] = array ($ yaml , $ expected );
504
504
505
- $ yaml = <<<EOT
505
+ $ yaml = <<<' EOT'
506
506
array:
507
507
- key: one
508
508
- key: two
@@ -515,7 +515,7 @@ public function getObjectForMapTests()
515
515
$ expected ->array [1 ]->key = 'two ' ;
516
516
$ tests ['nest-map-and-sequence ' ] = array ($ yaml , $ expected );
517
517
518
- $ yaml = <<<YAML
518
+ $ yaml = <<<' YAML'
519
519
map:
520
520
1: one
521
521
2: two
@@ -526,7 +526,7 @@ public function getObjectForMapTests()
526
526
$ expected ->map ->{2 } = 'two ' ;
527
527
$ tests ['numeric-keys ' ] = array ($ yaml , $ expected );
528
528
529
- $ yaml = <<<YAML
529
+ $ yaml = <<<' YAML'
530
530
map:
531
531
0: one
532
532
1: two
@@ -561,11 +561,11 @@ public function testObjectsSupportDisabledWithExceptionsUsingBooleanToggles($yam
561
561
562
562
public function invalidDumpedObjectProvider ()
563
563
{
564
- $ yamlTag = <<<EOF
564
+ $ yamlTag = <<<' EOF'
565
565
foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
566
566
bar: 1
567
567
EOF;
568
- $ localTag = <<<EOF
568
+ $ localTag = <<<' EOF'
569
569
foo: !php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
570
570
bar: 1
571
571
EOF;
@@ -667,7 +667,7 @@ public function testSequenceInAMapping()
667
667
668
668
public function testSequenceInMappingStartedBySingleDashLine ()
669
669
{
670
- $ yaml = <<<EOT
670
+ $ yaml = <<<' EOT'
671
671
a:
672
672
-
673
673
b:
@@ -695,7 +695,7 @@ public function testSequenceInMappingStartedBySingleDashLine()
695
695
696
696
public function testSequenceFollowedByCommentEmbeddedInMapping ()
697
697
{
698
- $ yaml = <<<EOT
698
+ $ yaml = <<<' EOT'
699
699
a:
700
700
b:
701
701
- c
@@ -731,7 +731,7 @@ public function testMappingInASequence()
731
731
*/
732
732
public function testScalarInSequence ()
733
733
{
734
- Yaml::parse (<<<EOF
734
+ Yaml::parse (<<<' EOF'
735
735
foo:
736
736
- bar
737
737
"missing colon"
@@ -752,7 +752,7 @@ public function testScalarInSequence()
752
752
*/
753
753
public function testMappingDuplicateKeyBlock ()
754
754
{
755
- $ input = <<<EOD
755
+ $ input = <<<' EOD'
756
756
parent:
757
757
child: first
758
758
child: duplicate
@@ -770,7 +770,7 @@ public function testMappingDuplicateKeyBlock()
770
770
771
771
public function testMappingDuplicateKeyFlow ()
772
772
{
773
- $ input = <<<EOD
773
+ $ input = <<<' EOD'
774
774
parent: { child: first, child: duplicate }
775
775
parent: { child: duplicate, child: duplicate }
776
776
EOD;
@@ -967,7 +967,7 @@ public function testFloatKeys()
967
967
*/
968
968
public function testColonInMappingValueException ()
969
969
{
970
- $ yaml = <<<EOF
970
+ $ yaml = <<<' EOF'
971
971
foo: bar: baz
972
972
EOF;
973
973
@@ -976,7 +976,7 @@ public function testColonInMappingValueException()
976
976
977
977
public function testColonInMappingValueExceptionNotTriggeredByColonInComment ()
978
978
{
979
- $ yaml = <<<EOT
979
+ $ yaml = <<<' EOT'
980
980
foo:
981
981
bar: foobar # Note: a comment after a colon
982
982
EOT;
@@ -1077,7 +1077,7 @@ public function getCommentLikeStringInScalarBlockData()
1077
1077
);
1078
1078
$ tests [] = array ($ yaml , $ expected );
1079
1079
1080
- $ yaml = <<<EOT
1080
+ $ yaml = <<<' EOT'
1081
1081
foo:
1082
1082
bar:
1083
1083
scalar-block: >
@@ -1120,7 +1120,7 @@ public function getCommentLikeStringInScalarBlockData()
1120
1120
1121
1121
public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks ()
1122
1122
{
1123
- $ yaml = <<<EOT
1123
+ $ yaml = <<<' EOT'
1124
1124
test: >
1125
1125
<h2>A heading</h2>
1126
1126
@@ -1132,7 +1132,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1132
1132
1133
1133
$ this ->assertSame (
1134
1134
array (
1135
- 'test ' => <<<EOT
1135
+ 'test ' => <<<' EOT'
1136
1136
<h2>A heading</h2>
1137
1137
<ul> <li>a list</li> <li>may be a good example</li> </ul>
1138
1138
EOT
@@ -1144,7 +1144,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1144
1144
1145
1145
public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks ()
1146
1146
{
1147
- $ yaml = <<<EOT
1147
+ $ yaml = <<<' EOT'
1148
1148
test: >
1149
1149
<h2>A heading</h2>
1150
1150
@@ -1156,7 +1156,7 @@ public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
1156
1156
1157
1157
$ this ->assertSame (
1158
1158
array (
1159
- 'test ' => <<<EOT
1159
+ 'test ' => <<<' EOT'
1160
1160
<h2>A heading</h2>
1161
1161
<ul>
1162
1162
<li>a list</li>
@@ -1184,13 +1184,13 @@ public function getBinaryData()
1184
1184
'enclosed with single quotes ' => array ("data: !!binary 'SGVsbG8gd29ybGQ=' " ),
1185
1185
'containing spaces ' => array ('data: !!binary "SGVs bG8gd 29ybGQ=" ' ),
1186
1186
'in block scalar ' => array (
1187
- <<<EOT
1187
+ <<<' EOT'
1188
1188
data: !!binary |
1189
1189
SGVsbG8gd29ybGQ=
1190
1190
EOT
1191
1191
),
1192
1192
'containing spaces in block scalar ' => array (
1193
- <<<EOT
1193
+ <<<' EOT'
1194
1194
data: !!binary |
1195
1195
SGVs bG8gd 29ybGQ=
1196
1196
EOT
@@ -1216,31 +1216,31 @@ public function getInvalidBinaryData()
1216
1216
'too many equals characters ' => array ('data: !!binary "SGVsbG8gd29yb===" ' , '/The base64 encoded data \(.*\) contains invalid characters/ ' ),
1217
1217
'misplaced equals character ' => array ('data: !!binary "SGVsbG8gd29ybG=Q" ' , '/The base64 encoded data \(.*\) contains invalid characters/ ' ),
1218
1218
'length not a multiple of four in block scalar ' => array (
1219
- <<<EOT
1219
+ <<<' EOT'
1220
1220
data: !!binary |
1221
1221
SGVsbG8d29ybGQ=
1222
1222
EOT
1223
1223
,
1224
1224
'/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/ ' ,
1225
1225
),
1226
1226
'invalid characters in block scalar ' => array (
1227
- <<<EOT
1227
+ <<<' EOT'
1228
1228
data: !!binary |
1229
1229
SGVsbG8#d29ybGQ=
1230
1230
EOT
1231
1231
,
1232
1232
'/The base64 encoded data \(.*\) contains invalid characters/ ' ,
1233
1233
),
1234
1234
'too many equals characters in block scalar ' => array (
1235
- <<<EOT
1235
+ <<<' EOT'
1236
1236
data: !!binary |
1237
1237
SGVsbG8gd29yb===
1238
1238
EOT
1239
1239
,
1240
1240
'/The base64 encoded data \(.*\) contains invalid characters/ ' ,
1241
1241
),
1242
1242
'misplaced equals character in block scalar ' => array (
1243
- <<<EOT
1243
+ <<<' EOT'
1244
1244
data: !!binary |
1245
1245
SGVsbG8gd29ybG=Q
1246
1246
EOT
@@ -1252,7 +1252,7 @@ public function getInvalidBinaryData()
1252
1252
1253
1253
public function testParseDateAsMappingValue ()
1254
1254
{
1255
- $ yaml = <<<EOT
1255
+ $ yaml = <<<' EOT'
1256
1256
date: 2002-12-14
1257
1257
EOT;
1258
1258
$ expectedDate = new \DateTime ();
@@ -1283,7 +1283,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1283
1283
return array (
1284
1284
array (
1285
1285
4 ,
1286
- <<<YAML
1286
+ <<<' YAML'
1287
1287
foo:
1288
1288
-
1289
1289
# bar
@@ -1292,7 +1292,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1292
1292
),
1293
1293
array (
1294
1294
5 ,
1295
- <<<YAML
1295
+ <<<' YAML'
1296
1296
foo:
1297
1297
-
1298
1298
# bar
@@ -1302,7 +1302,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1302
1302
),
1303
1303
array (
1304
1304
8 ,
1305
- <<<YAML
1305
+ <<<' YAML'
1306
1306
foo:
1307
1307
-
1308
1308
# foobar
@@ -1315,7 +1315,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1315
1315
),
1316
1316
array (
1317
1317
10 ,
1318
- <<<YAML
1318
+ <<<' YAML'
1319
1319
foo:
1320
1320
-
1321
1321
# foobar
0 commit comments