@@ -442,7 +442,7 @@ public function testBlockLiteralWithLeadingNewlines()
442
442
443
443
public function testObjectSupportEnabled ()
444
444
{
445
- $ input = <<<EOF
445
+ $ input = <<<' EOF'
446
446
foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
447
447
bar: 1
448
448
EOF;
@@ -454,7 +454,7 @@ public function testObjectSupportEnabled()
454
454
*/
455
455
public function testObjectSupportEnabledPassingTrue ()
456
456
{
457
- $ input = <<<EOF
457
+ $ input = <<<' EOF'
458
458
foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
459
459
bar: 1
460
460
EOF;
@@ -466,7 +466,7 @@ public function testObjectSupportEnabledPassingTrue()
466
466
*/
467
467
public function testObjectSupportEnabledWithDeprecatedTag ()
468
468
{
469
- $ input = <<<EOF
469
+ $ input = <<<' EOF'
470
470
foo: !!php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
471
471
bar: 1
472
472
EOF;
@@ -502,7 +502,7 @@ public function getObjectForMapTests()
502
502
{
503
503
$ tests = array ();
504
504
505
- $ yaml = <<<EOF
505
+ $ yaml = <<<' EOF'
506
506
foo:
507
507
fiz: [cat]
508
508
EOF;
@@ -523,7 +523,7 @@ public function getObjectForMapTests()
523
523
$ expected ->baz = 'foobar ' ;
524
524
$ tests ['object-for-map-is-applied-after-parsing ' ] = array ($ yaml , $ expected );
525
525
526
- $ yaml = <<<EOT
526
+ $ yaml = <<<' EOT'
527
527
array:
528
528
- key: one
529
529
- key: two
@@ -536,7 +536,7 @@ public function getObjectForMapTests()
536
536
$ expected ->array [1 ]->key = 'two ' ;
537
537
$ tests ['nest-map-and-sequence ' ] = array ($ yaml , $ expected );
538
538
539
- $ yaml = <<<YAML
539
+ $ yaml = <<<' YAML'
540
540
map:
541
541
1: one
542
542
2: two
@@ -547,7 +547,7 @@ public function getObjectForMapTests()
547
547
$ expected ->map ->{2 } = 'two ' ;
548
548
$ tests ['numeric-keys ' ] = array ($ yaml , $ expected );
549
549
550
- $ yaml = <<<YAML
550
+ $ yaml = <<<' YAML'
551
551
map:
552
552
0: one
553
553
1: two
@@ -582,11 +582,11 @@ public function testObjectsSupportDisabledWithExceptionsUsingBooleanToggles($yam
582
582
583
583
public function invalidDumpedObjectProvider ()
584
584
{
585
- $ yamlTag = <<<EOF
585
+ $ yamlTag = <<<' EOF'
586
586
foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
587
587
bar: 1
588
588
EOF;
589
- $ localTag = <<<EOF
589
+ $ localTag = <<<' EOF'
590
590
foo: !php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
591
591
bar: 1
592
592
EOF;
@@ -688,7 +688,7 @@ public function testSequenceInAMapping()
688
688
689
689
public function testSequenceInMappingStartedBySingleDashLine ()
690
690
{
691
- $ yaml = <<<EOT
691
+ $ yaml = <<<' EOT'
692
692
a:
693
693
-
694
694
b:
@@ -716,7 +716,7 @@ public function testSequenceInMappingStartedBySingleDashLine()
716
716
717
717
public function testSequenceFollowedByCommentEmbeddedInMapping ()
718
718
{
719
- $ yaml = <<<EOT
719
+ $ yaml = <<<' EOT'
720
720
a:
721
721
b:
722
722
- c
@@ -752,7 +752,7 @@ public function testMappingInASequence()
752
752
*/
753
753
public function testScalarInSequence ()
754
754
{
755
- Yaml::parse (<<<EOF
755
+ Yaml::parse (<<<' EOF'
756
756
foo:
757
757
- bar
758
758
"missing colon"
@@ -774,7 +774,7 @@ public function testScalarInSequence()
774
774
*/
775
775
public function testMappingDuplicateKeyBlock ()
776
776
{
777
- $ input = <<<EOD
777
+ $ input = <<<' EOD'
778
778
parent:
779
779
child: first
780
780
child: duplicate
@@ -795,7 +795,7 @@ public function testMappingDuplicateKeyBlock()
795
795
*/
796
796
public function testMappingDuplicateKeyFlow ()
797
797
{
798
- $ input = <<<EOD
798
+ $ input = <<<' EOD'
799
799
parent: { child: first, child: duplicate }
800
800
parent: { child: duplicate, child: duplicate }
801
801
EOD;
@@ -1060,7 +1060,7 @@ public function testFloatKeys()
1060
1060
*/
1061
1061
public function testColonInMappingValueException ()
1062
1062
{
1063
- $ yaml = <<<EOF
1063
+ $ yaml = <<<' EOF'
1064
1064
foo: bar: baz
1065
1065
EOF;
1066
1066
@@ -1069,7 +1069,7 @@ public function testColonInMappingValueException()
1069
1069
1070
1070
public function testColonInMappingValueExceptionNotTriggeredByColonInComment ()
1071
1071
{
1072
- $ yaml = <<<EOT
1072
+ $ yaml = <<<' EOT'
1073
1073
foo:
1074
1074
bar: foobar # Note: a comment after a colon
1075
1075
EOT;
@@ -1170,7 +1170,7 @@ public function getCommentLikeStringInScalarBlockData()
1170
1170
);
1171
1171
$ tests [] = array ($ yaml , $ expected );
1172
1172
1173
- $ yaml = <<<EOT
1173
+ $ yaml = <<<' EOT'
1174
1174
foo:
1175
1175
bar:
1176
1176
scalar-block: >
@@ -1213,7 +1213,7 @@ public function getCommentLikeStringInScalarBlockData()
1213
1213
1214
1214
public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks ()
1215
1215
{
1216
- $ yaml = <<<EOT
1216
+ $ yaml = <<<' EOT'
1217
1217
test: >
1218
1218
<h2>A heading</h2>
1219
1219
@@ -1225,7 +1225,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1225
1225
1226
1226
$ this ->assertSame (
1227
1227
array (
1228
- 'test ' => <<<EOT
1228
+ 'test ' => <<<' EOT'
1229
1229
<h2>A heading</h2>
1230
1230
<ul> <li>a list</li> <li>may be a good example</li> </ul>
1231
1231
EOT
@@ -1237,7 +1237,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1237
1237
1238
1238
public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks ()
1239
1239
{
1240
- $ yaml = <<<EOT
1240
+ $ yaml = <<<' EOT'
1241
1241
test: >
1242
1242
<h2>A heading</h2>
1243
1243
@@ -1249,7 +1249,7 @@ public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
1249
1249
1250
1250
$ this ->assertSame (
1251
1251
array (
1252
- 'test ' => <<<EOT
1252
+ 'test ' => <<<' EOT'
1253
1253
<h2>A heading</h2>
1254
1254
<ul>
1255
1255
<li>a list</li>
@@ -1277,13 +1277,13 @@ public function getBinaryData()
1277
1277
'enclosed with single quotes ' => array ("data: !!binary 'SGVsbG8gd29ybGQ=' " ),
1278
1278
'containing spaces ' => array ('data: !!binary "SGVs bG8gd 29ybGQ=" ' ),
1279
1279
'in block scalar ' => array (
1280
- <<<EOT
1280
+ <<<' EOT'
1281
1281
data: !!binary |
1282
1282
SGVsbG8gd29ybGQ=
1283
1283
EOT
1284
1284
),
1285
1285
'containing spaces in block scalar ' => array (
1286
- <<<EOT
1286
+ <<<' EOT'
1287
1287
data: !!binary |
1288
1288
SGVs bG8gd 29ybGQ=
1289
1289
EOT
@@ -1309,31 +1309,31 @@ public function getInvalidBinaryData()
1309
1309
'too many equals characters ' => array ('data: !!binary "SGVsbG8gd29yb===" ' , '/The base64 encoded data \(.*\) contains invalid characters/ ' ),
1310
1310
'misplaced equals character ' => array ('data: !!binary "SGVsbG8gd29ybG=Q" ' , '/The base64 encoded data \(.*\) contains invalid characters/ ' ),
1311
1311
'length not a multiple of four in block scalar ' => array (
1312
- <<<EOT
1312
+ <<<' EOT'
1313
1313
data: !!binary |
1314
1314
SGVsbG8d29ybGQ=
1315
1315
EOT
1316
1316
,
1317
1317
'/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/ ' ,
1318
1318
),
1319
1319
'invalid characters in block scalar ' => array (
1320
- <<<EOT
1320
+ <<<' EOT'
1321
1321
data: !!binary |
1322
1322
SGVsbG8#d29ybGQ=
1323
1323
EOT
1324
1324
,
1325
1325
'/The base64 encoded data \(.*\) contains invalid characters/ ' ,
1326
1326
),
1327
1327
'too many equals characters in block scalar ' => array (
1328
- <<<EOT
1328
+ <<<' EOT'
1329
1329
data: !!binary |
1330
1330
SGVsbG8gd29yb===
1331
1331
EOT
1332
1332
,
1333
1333
'/The base64 encoded data \(.*\) contains invalid characters/ ' ,
1334
1334
),
1335
1335
'misplaced equals character in block scalar ' => array (
1336
- <<<EOT
1336
+ <<<' EOT'
1337
1337
data: !!binary |
1338
1338
SGVsbG8gd29ybG=Q
1339
1339
EOT
@@ -1345,7 +1345,7 @@ public function getInvalidBinaryData()
1345
1345
1346
1346
public function testParseDateAsMappingValue ()
1347
1347
{
1348
- $ yaml = <<<EOT
1348
+ $ yaml = <<<' EOT'
1349
1349
date: 2002-12-14
1350
1350
EOT;
1351
1351
$ expectedDate = new \DateTime ();
@@ -1376,7 +1376,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1376
1376
return array (
1377
1377
array (
1378
1378
4 ,
1379
- <<<YAML
1379
+ <<<' YAML'
1380
1380
foo:
1381
1381
-
1382
1382
# bar
@@ -1385,7 +1385,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1385
1385
),
1386
1386
array (
1387
1387
5 ,
1388
- <<<YAML
1388
+ <<<' YAML'
1389
1389
foo:
1390
1390
-
1391
1391
# bar
@@ -1395,7 +1395,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1395
1395
),
1396
1396
array (
1397
1397
8 ,
1398
- <<<YAML
1398
+ <<<' YAML'
1399
1399
foo:
1400
1400
-
1401
1401
# foobar
@@ -1408,7 +1408,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1408
1408
),
1409
1409
array (
1410
1410
10 ,
1411
- <<<YAML
1411
+ <<<' YAML'
1412
1412
foo:
1413
1413
-
1414
1414
# foobar
0 commit comments