@@ -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
...
@@ -473,7 +473,7 @@ public function testNonUtf8Exception()
473
473
*/
474
474
public function testUnindentedCollectionException ()
475
475
{
476
- $ yaml = <<<EOF
476
+ $ yaml = <<<' EOF'
477
477
478
478
collection:
479
479
-item1
@@ -490,7 +490,7 @@ public function testUnindentedCollectionException()
490
490
*/
491
491
public function testShortcutKeyUnindentedCollectionException ()
492
492
{
493
- $ yaml = <<<EOF
493
+ $ yaml = <<<' EOF'
494
494
495
495
collection:
496
496
- key: foo
@@ -507,7 +507,7 @@ public function testShortcutKeyUnindentedCollectionException()
507
507
*/
508
508
public function testMultipleDocumentsNotSupportedException ()
509
509
{
510
- Yaml::parse (<<<EOL
510
+ Yaml::parse (<<<' EOL'
511
511
# Ranking of 1998 home runs
512
512
---
513
513
- Mark McGwire
@@ -527,7 +527,7 @@ public function testMultipleDocumentsNotSupportedException()
527
527
*/
528
528
public function testSequenceInAMapping ()
529
529
{
530
- Yaml::parse (<<<EOF
530
+ Yaml::parse (<<<' EOF'
531
531
yaml:
532
532
hash: me
533
533
- array stuff
@@ -540,7 +540,7 @@ public function testSequenceInAMapping()
540
540
*/
541
541
public function testMappingInASequence ()
542
542
{
543
- Yaml::parse (<<<EOF
543
+ Yaml::parse (<<<' EOF'
544
544
yaml:
545
545
- array stuff
546
546
hash: me
@@ -550,7 +550,7 @@ public function testMappingInASequence()
550
550
551
551
public function testEmptyValue ()
552
552
{
553
- $ input = <<<EOF
553
+ $ input = <<<' EOF'
554
554
hash:
555
555
EOF;
556
556
@@ -568,7 +568,7 @@ public function testCommentAtTheRootIndent()
568
568
'class ' => 'Bar ' ,
569
569
),
570
570
),
571
- ), Yaml::parse (<<<EOF
571
+ ), Yaml::parse (<<<' EOF'
572
572
# comment 1
573
573
services:
574
574
# comment 2
@@ -585,7 +585,7 @@ class: Bar
585
585
586
586
public function testStringBlockWithComments ()
587
587
{
588
- $ this ->assertEquals (array ('content ' => <<<EOT
588
+ $ this ->assertEquals (array ('content ' => <<<' EOT'
589
589
# comment 1
590
590
header
591
591
@@ -596,7 +596,7 @@ public function testStringBlockWithComments()
596
596
597
597
footer # comment3
598
598
EOT
599
- ), Yaml::parse (<<<EOF
599
+ ), Yaml::parse (<<<' EOF'
600
600
content: |
601
601
# comment 1
602
602
header
@@ -613,7 +613,7 @@ public function testStringBlockWithComments()
613
613
614
614
public function testFoldedStringBlockWithComments ()
615
615
{
616
- $ this ->assertEquals (array (array ('content ' => <<<EOT
616
+ $ this ->assertEquals (array (array ('content ' => <<<' EOT'
617
617
# comment 1
618
618
header
619
619
@@ -624,7 +624,7 @@ public function testFoldedStringBlockWithComments()
624
624
625
625
footer # comment3
626
626
EOT
627
- )), Yaml::parse (<<<EOF
627
+ )), Yaml::parse (<<<' EOF'
628
628
-
629
629
content: |
630
630
# comment 1
@@ -644,7 +644,7 @@ public function testNestedFoldedStringBlockWithComments()
644
644
{
645
645
$ this ->assertEquals (array (array (
646
646
'title ' => 'some title ' ,
647
- 'content ' => <<<EOT
647
+ 'content ' => <<<' EOT'
648
648
# comment 1
649
649
header
650
650
@@ -655,7 +655,7 @@ public function testNestedFoldedStringBlockWithComments()
655
655
656
656
footer # comment3
657
657
EOT
658
- )), Yaml::parse (<<<EOF
658
+ )), Yaml::parse (<<<' EOF'
659
659
-
660
660
title: some title
661
661
content: |
@@ -684,7 +684,7 @@ public function testReferenceResolvingInInlineStrings()
684
684
'map ' => array ('key ' => 'var-value ' ),
685
685
'list_in_map ' => array ('key ' => array ('var-value ' )),
686
686
'map_in_map ' => array ('foo ' => array ('bar ' => 'var-value ' )),
687
- ), Yaml::parse (<<<EOF
687
+ ), Yaml::parse (<<<' EOF'
688
688
var: &var var-value
689
689
scalar: *var
690
690
list: [ *var ]
@@ -700,7 +700,7 @@ public function testReferenceResolvingInInlineStrings()
700
700
701
701
public function testYamlDirective ()
702
702
{
703
- $ yaml = <<<EOF
703
+ $ yaml = <<<' EOF'
704
704
%YAML 1.2
705
705
---
706
706
foo: 1
@@ -711,7 +711,7 @@ public function testYamlDirective()
711
711
712
712
public function testFloatKeys ()
713
713
{
714
- $ yaml = <<<EOF
714
+ $ yaml = <<<' EOF'
715
715
foo:
716
716
1.2: "bar"
717
717
1.3: "baz"
@@ -737,7 +737,7 @@ public function testCommentLikeStringsAreNotStrippedInBlockScalars($yaml, $expec
737
737
738
738
public function getCommentLikeStringInScalarBlockData ()
739
739
{
740
- $ yaml1 = <<<EOT
740
+ $ yaml1 = <<<' EOT'
741
741
pages:
742
742
-
743
743
title: some title
@@ -756,7 +756,7 @@ public function getCommentLikeStringInScalarBlockData()
756
756
'pages ' => array (
757
757
array (
758
758
'title ' => 'some title ' ,
759
- 'content ' => <<<EOT
759
+ 'content ' => <<<' EOT'
760
760
# comment 1
761
761
header
762
762
@@ -772,7 +772,7 @@ public function getCommentLikeStringInScalarBlockData()
772
772
),
773
773
);
774
774
775
- $ yaml2 = <<<EOT
775
+ $ yaml2 = <<<' EOT'
776
776
test: |
777
777
foo
778
778
# bar
@@ -788,7 +788,7 @@ public function getCommentLikeStringInScalarBlockData()
788
788
baz
789
789
EOT;
790
790
$ expected2 = array (
791
- 'test ' => <<<EOT
791
+ 'test ' => <<<' EOT'
792
792
foo
793
793
# bar
794
794
baz
@@ -797,15 +797,15 @@ public function getCommentLikeStringInScalarBlockData()
797
797
,
798
798
'collection ' => array (
799
799
array (
800
- 'one ' => <<<EOT
800
+ 'one ' => <<<' EOT'
801
801
foo
802
802
# bar
803
803
baz
804
804
EOT
805
805
,
806
806
),
807
807
array (
808
- 'two ' => <<<EOT
808
+ 'two ' => <<<' EOT'
809
809
foo
810
810
# bar
811
811
baz
0 commit comments