@@ -421,13 +421,13 @@ 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;
428
428
$ this ->assertEquals (array ('foo ' => new B (), 'bar ' => 1 ), $ this ->parser ->parse ($ input , false , true ), '->parse() is able to parse objects ' );
429
429
430
- $ input = <<<EOF
430
+ $ input = <<<' EOF'
431
431
foo: !php/object:O:30:"Symfony\Component\Yaml\Tests\B":1:{s:1:"b";s:3:"foo";}
432
432
bar: 1
433
433
EOF;
@@ -454,7 +454,7 @@ public function getObjectForMapTests()
454
454
{
455
455
$ tests = array ();
456
456
457
- $ yaml = <<<EOF
457
+ $ yaml = <<<' EOF'
458
458
foo:
459
459
fiz: [cat]
460
460
EOF;
@@ -475,7 +475,7 @@ public function getObjectForMapTests()
475
475
$ expected ->baz = 'foobar ' ;
476
476
$ tests ['object-for-map-is-applied-after-parsing ' ] = array ($ yaml , $ expected );
477
477
478
- $ yaml = <<<EOT
478
+ $ yaml = <<<' EOT'
479
479
array:
480
480
- key: one
481
481
- key: two
@@ -488,7 +488,7 @@ public function getObjectForMapTests()
488
488
$ expected ->array [1 ]->key = 'two ' ;
489
489
$ tests ['nest-map-and-sequence ' ] = array ($ yaml , $ expected );
490
490
491
- $ yaml = <<<YAML
491
+ $ yaml = <<<' YAML'
492
492
map:
493
493
1: one
494
494
2: two
@@ -499,7 +499,7 @@ public function getObjectForMapTests()
499
499
$ expected ->map ->{2 } = 'two ' ;
500
500
$ tests ['numeric-keys ' ] = array ($ yaml , $ expected );
501
501
502
- $ yaml = <<<YAML
502
+ $ yaml = <<<' YAML'
503
503
map:
504
504
0: one
505
505
1: two
@@ -524,11 +524,11 @@ public function testObjectsSupportDisabledWithExceptions($yaml)
524
524
525
525
public function invalidDumpedObjectProvider ()
526
526
{
527
- $ yamlTag = <<<EOF
527
+ $ yamlTag = <<<' EOF'
528
528
foo: !!php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
529
529
bar: 1
530
530
EOF;
531
- $ localTag = <<<EOF
531
+ $ localTag = <<<' EOF'
532
532
foo: !php/object:O:30:"Symfony\Tests\Component\Yaml\B":1:{s:1:"b";s:3:"foo";}
533
533
bar: 1
534
534
EOF;
@@ -630,7 +630,7 @@ public function testSequenceInAMapping()
630
630
631
631
public function testSequenceInMappingStartedBySingleDashLine ()
632
632
{
633
- $ yaml = <<<EOT
633
+ $ yaml = <<<' EOT'
634
634
a:
635
635
-
636
636
b:
@@ -658,7 +658,7 @@ public function testSequenceInMappingStartedBySingleDashLine()
658
658
659
659
public function testSequenceFollowedByCommentEmbeddedInMapping ()
660
660
{
661
- $ yaml = <<<EOT
661
+ $ yaml = <<<' EOT'
662
662
a:
663
663
b:
664
664
- c
@@ -694,7 +694,7 @@ public function testMappingInASequence()
694
694
*/
695
695
public function testScalarInSequence ()
696
696
{
697
- Yaml::parse (<<<EOF
697
+ Yaml::parse (<<<' EOF'
698
698
foo:
699
699
- bar
700
700
"missing colon"
@@ -715,7 +715,7 @@ public function testScalarInSequence()
715
715
*/
716
716
public function testMappingDuplicateKeyBlock ()
717
717
{
718
- $ input = <<<EOD
718
+ $ input = <<<' EOD'
719
719
parent:
720
720
child: first
721
721
child: duplicate
@@ -733,7 +733,7 @@ public function testMappingDuplicateKeyBlock()
733
733
734
734
public function testMappingDuplicateKeyFlow ()
735
735
{
736
- $ input = <<<EOD
736
+ $ input = <<<' EOD'
737
737
parent: { child: first, child: duplicate }
738
738
parent: { child: duplicate, child: duplicate }
739
739
EOD;
@@ -931,7 +931,7 @@ public function testFloatKeys()
931
931
*/
932
932
public function testColonInMappingValueException ()
933
933
{
934
- $ yaml = <<<EOF
934
+ $ yaml = <<<' EOF'
935
935
foo: bar: baz
936
936
EOF;
937
937
@@ -940,7 +940,7 @@ public function testColonInMappingValueException()
940
940
941
941
public function testColonInMappingValueExceptionNotTriggeredByColonInComment ()
942
942
{
943
- $ yaml = <<<EOT
943
+ $ yaml = <<<' EOT'
944
944
foo:
945
945
bar: foobar # Note: a comment after a colon
946
946
EOT;
@@ -1041,7 +1041,7 @@ public function getCommentLikeStringInScalarBlockData()
1041
1041
);
1042
1042
$ tests [] = array ($ yaml , $ expected );
1043
1043
1044
- $ yaml = <<<EOT
1044
+ $ yaml = <<<' EOT'
1045
1045
foo:
1046
1046
bar:
1047
1047
scalar-block: >
@@ -1084,7 +1084,7 @@ public function getCommentLikeStringInScalarBlockData()
1084
1084
1085
1085
public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks ()
1086
1086
{
1087
- $ yaml = <<<EOT
1087
+ $ yaml = <<<' EOT'
1088
1088
test: >
1089
1089
<h2>A heading</h2>
1090
1090
@@ -1096,7 +1096,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1096
1096
1097
1097
$ this ->assertSame (
1098
1098
array (
1099
- 'test ' => <<<EOT
1099
+ 'test ' => <<<' EOT'
1100
1100
<h2>A heading</h2>
1101
1101
<ul> <li>a list</li> <li>may be a good example</li> </ul>
1102
1102
EOT
@@ -1108,7 +1108,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1108
1108
1109
1109
public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks ()
1110
1110
{
1111
- $ yaml = <<<EOT
1111
+ $ yaml = <<<' EOT'
1112
1112
test: >
1113
1113
<h2>A heading</h2>
1114
1114
@@ -1120,7 +1120,7 @@ public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
1120
1120
1121
1121
$ this ->assertSame (
1122
1122
array (
1123
- 'test ' => <<<EOT
1123
+ 'test ' => <<<' EOT'
1124
1124
<h2>A heading</h2>
1125
1125
<ul>
1126
1126
<li>a list</li>
@@ -1153,7 +1153,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1153
1153
return array (
1154
1154
array (
1155
1155
4 ,
1156
- <<<YAML
1156
+ <<<' YAML'
1157
1157
foo:
1158
1158
-
1159
1159
# bar
@@ -1162,7 +1162,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1162
1162
),
1163
1163
array (
1164
1164
5 ,
1165
- <<<YAML
1165
+ <<<' YAML'
1166
1166
foo:
1167
1167
-
1168
1168
# bar
@@ -1172,7 +1172,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1172
1172
),
1173
1173
array (
1174
1174
8 ,
1175
- <<<YAML
1175
+ <<<' YAML'
1176
1176
foo:
1177
1177
-
1178
1178
# foobar
@@ -1185,7 +1185,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1185
1185
),
1186
1186
array (
1187
1187
10 ,
1188
- <<<YAML
1188
+ <<<' YAML'
1189
1189
foo:
1190
1190
-
1191
1191
# foobar
0 commit comments