Code Duplication    Length = 13-17 lines in 2 locations

htdocs/class/libraries/vendor/symfony/yaml/Tests/ParserTest.php 2 locations

@@ 734-750 (lines=17) @@
731
     * @see http://yaml.org/spec/1.2/spec.html#id2759572
732
     * @see http://yaml.org/spec/1.1/#id932806
733
     */
734
    public function testMappingDuplicateKeyBlock()
735
    {
736
        $input = <<<'EOD'
737
parent:
738
    child: first
739
    child: duplicate
740
parent:
741
    child: duplicate
742
    child: duplicate
743
EOD;
744
        $expected = array(
745
            'parent' => array(
746
                'child' => 'first',
747
            ),
748
        );
749
        $this->assertSame($expected, Yaml::parse($input));
750
    }
751
752
    public function testMappingDuplicateKeyFlow()
753
    {
@@ 752-764 (lines=13) @@
749
        $this->assertSame($expected, Yaml::parse($input));
750
    }
751
752
    public function testMappingDuplicateKeyFlow()
753
    {
754
        $input = <<<'EOD'
755
parent: { child: first, child: duplicate }
756
parent: { child: duplicate, child: duplicate }
757
EOD;
758
        $expected = array(
759
            'parent' => array(
760
                'child' => 'first',
761
            ),
762
        );
763
        $this->assertSame($expected, Yaml::parse($input));
764
    }
765
766
    public function testEmptyValue()
767
    {