@@ -90,7 +90,7 @@ public function testTabsInYaml()
90
90
91
91
public function testEndOfTheDocumentMarker ()
92
92
{
93
- $ yaml = <<<EOF
93
+ $ yaml = <<<' EOF'
94
94
--- %YAML:1.0
95
95
foo
96
96
...
@@ -495,7 +495,7 @@ public function testNonUtf8Exception()
495
495
*/
496
496
public function testUnindentedCollectionException ()
497
497
{
498
- $ yaml = <<<EOF
498
+ $ yaml = <<<' EOF'
499
499
500
500
collection:
501
501
-item1
@@ -512,7 +512,7 @@ public function testUnindentedCollectionException()
512
512
*/
513
513
public function testShortcutKeyUnindentedCollectionException ()
514
514
{
515
- $ yaml = <<<EOF
515
+ $ yaml = <<<' EOF'
516
516
517
517
collection:
518
518
- key: foo
@@ -529,7 +529,7 @@ public function testShortcutKeyUnindentedCollectionException()
529
529
*/
530
530
public function testMultipleDocumentsNotSupportedException ()
531
531
{
532
- Yaml::parse (<<<EOL
532
+ Yaml::parse (<<<' EOL'
533
533
# Ranking of 1998 home runs
534
534
---
535
535
- Mark McGwire
@@ -549,7 +549,7 @@ public function testMultipleDocumentsNotSupportedException()
549
549
*/
550
550
public function testSequenceInAMapping ()
551
551
{
552
- Yaml::parse (<<<EOF
552
+ Yaml::parse (<<<' EOF'
553
553
yaml:
554
554
hash: me
555
555
- array stuff
@@ -562,7 +562,7 @@ public function testSequenceInAMapping()
562
562
*/
563
563
public function testMappingInASequence ()
564
564
{
565
- Yaml::parse (<<<EOF
565
+ Yaml::parse (<<<' EOF'
566
566
yaml:
567
567
- array stuff
568
568
hash: me
@@ -629,7 +629,7 @@ public function testMappingDuplicateKeyFlow()
629
629
630
630
public function testEmptyValue ()
631
631
{
632
- $ input = <<<EOF
632
+ $ input = <<<' EOF'
633
633
hash:
634
634
EOF;
635
635
@@ -647,7 +647,7 @@ public function testCommentAtTheRootIndent()
647
647
'class ' => 'Bar ' ,
648
648
),
649
649
),
650
- ), Yaml::parse (<<<EOF
650
+ ), Yaml::parse (<<<' EOF'
651
651
# comment 1
652
652
services:
653
653
# comment 2
@@ -664,7 +664,7 @@ class: Bar
664
664
665
665
public function testStringBlockWithComments ()
666
666
{
667
- $ this ->assertEquals (array ('content ' => <<<EOT
667
+ $ this ->assertEquals (array ('content ' => <<<' EOT'
668
668
# comment 1
669
669
header
670
670
@@ -675,7 +675,7 @@ public function testStringBlockWithComments()
675
675
676
676
footer # comment3
677
677
EOT
678
- ), Yaml::parse (<<<EOF
678
+ ), Yaml::parse (<<<' EOF'
679
679
content: |
680
680
# comment 1
681
681
header
@@ -692,7 +692,7 @@ public function testStringBlockWithComments()
692
692
693
693
public function testFoldedStringBlockWithComments ()
694
694
{
695
- $ this ->assertEquals (array (array ('content ' => <<<EOT
695
+ $ this ->assertEquals (array (array ('content ' => <<<' EOT'
696
696
# comment 1
697
697
header
698
698
@@ -703,7 +703,7 @@ public function testFoldedStringBlockWithComments()
703
703
704
704
footer # comment3
705
705
EOT
706
- )), Yaml::parse (<<<EOF
706
+ )), Yaml::parse (<<<' EOF'
707
707
-
708
708
content: |
709
709
# comment 1
@@ -723,7 +723,7 @@ public function testNestedFoldedStringBlockWithComments()
723
723
{
724
724
$ this ->assertEquals (array (array (
725
725
'title ' => 'some title ' ,
726
- 'content ' => <<<EOT
726
+ 'content ' => <<<' EOT'
727
727
# comment 1
728
728
header
729
729
@@ -734,7 +734,7 @@ public function testNestedFoldedStringBlockWithComments()
734
734
735
735
footer # comment3
736
736
EOT
737
- )), Yaml::parse (<<<EOF
737
+ )), Yaml::parse (<<<' EOF'
738
738
-
739
739
title: some title
740
740
content: |
@@ -763,7 +763,7 @@ public function testReferenceResolvingInInlineStrings()
763
763
'map ' => array ('key ' => 'var-value ' ),
764
764
'list_in_map ' => array ('key ' => array ('var-value ' )),
765
765
'map_in_map ' => array ('foo ' => array ('bar ' => 'var-value ' )),
766
- ), Yaml::parse (<<<EOF
766
+ ), Yaml::parse (<<<' EOF'
767
767
var: &var var-value
768
768
scalar: *var
769
769
list: [ *var ]
@@ -779,7 +779,7 @@ public function testReferenceResolvingInInlineStrings()
779
779
780
780
public function testYamlDirective ()
781
781
{
782
- $ yaml = <<<EOF
782
+ $ yaml = <<<' EOF'
783
783
%YAML 1.2
784
784
---
785
785
foo: 1
@@ -790,7 +790,7 @@ public function testYamlDirective()
790
790
791
791
public function testFloatKeys ()
792
792
{
793
- $ yaml = <<<EOF
793
+ $ yaml = <<<' EOF'
794
794
foo:
795
795
1.2: "bar"
796
796
1.3: "baz"
@@ -816,7 +816,7 @@ public function testCommentLikeStringsAreNotStrippedInBlockScalars($yaml, $expec
816
816
817
817
public function getCommentLikeStringInScalarBlockData ()
818
818
{
819
- $ yaml1 = <<<EOT
819
+ $ yaml1 = <<<' EOT'
820
820
pages:
821
821
-
822
822
title: some title
@@ -835,7 +835,7 @@ public function getCommentLikeStringInScalarBlockData()
835
835
'pages ' => array (
836
836
array (
837
837
'title ' => 'some title ' ,
838
- 'content ' => <<<EOT
838
+ 'content ' => <<<' EOT'
839
839
# comment 1
840
840
header
841
841
@@ -851,7 +851,7 @@ public function getCommentLikeStringInScalarBlockData()
851
851
),
852
852
);
853
853
854
- $ yaml2 = <<<EOT
854
+ $ yaml2 = <<<' EOT'
855
855
test: |
856
856
foo
857
857
# bar
@@ -867,7 +867,7 @@ public function getCommentLikeStringInScalarBlockData()
867
867
baz
868
868
EOT;
869
869
$ expected2 = array (
870
- 'test ' => <<<EOT
870
+ 'test ' => <<<' EOT'
871
871
foo
872
872
# bar
873
873
baz
@@ -876,15 +876,15 @@ public function getCommentLikeStringInScalarBlockData()
876
876
,
877
877
'collection ' => array (
878
878
array (
879
- 'one ' => <<<EOT
879
+ 'one ' => <<<' EOT'
880
880
foo
881
881
# bar
882
882
baz
883
883
EOT
884
884
,
885
885
),
886
886
array (
887
- 'two ' => <<<EOT
887
+ 'two ' => <<<' EOT'
888
888
foo
889
889
# bar
890
890
baz
0 commit comments