@@ -444,7 +444,7 @@ public function testObjectSupportDisabledButNoExceptions($input)
444
444
445
445
public function testObjectForMapEnabledWithMapping ()
446
446
{
447
- $ yaml = <<<EOF
447
+ $ yaml = <<<' EOF'
448
448
foo:
449
449
fiz: [cat]
450
450
EOF;
@@ -581,7 +581,7 @@ public function testSequenceInAMapping()
581
581
582
582
public function testSequenceInMappingStartedBySingleDashLine ()
583
583
{
584
- $ yaml = <<<EOT
584
+ $ yaml = <<<' EOT'
585
585
a:
586
586
-
587
587
b:
@@ -609,7 +609,7 @@ public function testSequenceInMappingStartedBySingleDashLine()
609
609
610
610
public function testSequenceFollowedByCommentEmbeddedInMapping ()
611
611
{
612
- $ yaml = <<<EOT
612
+ $ yaml = <<<' EOT'
613
613
a:
614
614
b:
615
615
- c
@@ -645,7 +645,7 @@ public function testMappingInASequence()
645
645
*/
646
646
public function testScalarInSequence ()
647
647
{
648
- Yaml::parse (<<<EOF
648
+ Yaml::parse (<<<' EOF'
649
649
foo:
650
650
- bar
651
651
"missing colon"
@@ -666,7 +666,7 @@ public function testScalarInSequence()
666
666
*/
667
667
public function testMappingDuplicateKeyBlock ()
668
668
{
669
- $ input = <<<EOD
669
+ $ input = <<<' EOD'
670
670
parent:
671
671
child: first
672
672
child: duplicate
@@ -684,7 +684,7 @@ public function testMappingDuplicateKeyBlock()
684
684
685
685
public function testMappingDuplicateKeyFlow ()
686
686
{
687
- $ input = <<<EOD
687
+ $ input = <<<' EOD'
688
688
parent: { child: first, child: duplicate }
689
689
parent: { child: duplicate, child: duplicate }
690
690
EOD;
@@ -968,7 +968,7 @@ public function getCommentLikeStringInScalarBlockData()
968
968
);
969
969
$ tests [] = array ($ yaml , $ expected );
970
970
971
- $ yaml = <<<EOT
971
+ $ yaml = <<<' EOT'
972
972
foo:
973
973
bar:
974
974
scalar-block: >
@@ -1011,7 +1011,7 @@ public function getCommentLikeStringInScalarBlockData()
1011
1011
1012
1012
public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks ()
1013
1013
{
1014
- $ yaml = <<<EOT
1014
+ $ yaml = <<<' EOT'
1015
1015
test: >
1016
1016
<h2>A heading</h2>
1017
1017
@@ -1023,7 +1023,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1023
1023
1024
1024
$ this ->assertSame (
1025
1025
array (
1026
- 'test ' => <<<EOT
1026
+ 'test ' => <<<' EOT'
1027
1027
<h2>A heading</h2>
1028
1028
<ul> <li>a list</li> <li>may be a good example</li> </ul>
1029
1029
EOT
@@ -1035,7 +1035,7 @@ public function testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
1035
1035
1036
1036
public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks ()
1037
1037
{
1038
- $ yaml = <<<EOT
1038
+ $ yaml = <<<' EOT'
1039
1039
test: >
1040
1040
<h2>A heading</h2>
1041
1041
@@ -1047,7 +1047,7 @@ public function testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
1047
1047
1048
1048
$ this ->assertSame (
1049
1049
array (
1050
- 'test ' => <<<EOT
1050
+ 'test ' => <<<' EOT'
1051
1051
<h2>A heading</h2>
1052
1052
<ul>
1053
1053
<li>a list</li>
@@ -1080,7 +1080,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1080
1080
return array (
1081
1081
array (
1082
1082
4 ,
1083
- <<<YAML
1083
+ <<<' YAML'
1084
1084
foo:
1085
1085
-
1086
1086
# bar
@@ -1089,7 +1089,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1089
1089
),
1090
1090
array (
1091
1091
5 ,
1092
- <<<YAML
1092
+ <<<' YAML'
1093
1093
foo:
1094
1094
-
1095
1095
# bar
@@ -1099,7 +1099,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1099
1099
),
1100
1100
array (
1101
1101
8 ,
1102
- <<<YAML
1102
+ <<<' YAML'
1103
1103
foo:
1104
1104
-
1105
1105
# foobar
@@ -1112,7 +1112,7 @@ public function parserThrowsExceptionWithCorrectLineNumberProvider()
1112
1112
),
1113
1113
array (
1114
1114
10 ,
1115
- <<<YAML
1115
+ <<<' YAML'
1116
1116
foo:
1117
1117
-
1118
1118
# foobar
0 commit comments