Code Duplication    Length = 13-17 lines in 2 locations

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

@@ 717-733 (lines=17) @@
714
     * @see http://yaml.org/spec/1.2/spec.html#id2759572
715
     * @see http://yaml.org/spec/1.1/#id932806
716
     */
717
    public function testMappingDuplicateKeyBlock()
718
    {
719
        $input = <<<EOD
720
parent:
721
    child: first
722
    child: duplicate
723
parent:
724
    child: duplicate
725
    child: duplicate
726
EOD;
727
        $expected = array(
728
            'parent' => array(
729
                'child' => 'first',
730
            ),
731
        );
732
        $this->assertSame($expected, Yaml::parse($input));
733
    }
734
735
    public function testMappingDuplicateKeyFlow()
736
    {
@@ 735-747 (lines=13) @@
732
        $this->assertSame($expected, Yaml::parse($input));
733
    }
734
735
    public function testMappingDuplicateKeyFlow()
736
    {
737
        $input = <<<EOD
738
parent: { child: first, child: duplicate }
739
parent: { child: duplicate, child: duplicate }
740
EOD;
741
        $expected = array(
742
            'parent' => array(
743
                'child' => 'first',
744
            ),
745
        );
746
        $this->assertSame($expected, Yaml::parse($input));
747
    }
748
749
    public function testEmptyValue()
750
    {