Code Duplication    Length = 10-17 lines in 2 locations

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

@@ 916-925 (lines=10) @@
913
        ));
914
    }
915
916
    public function testYamlDirective()
917
    {
918
        $yaml = <<<'EOF'
919
%YAML 1.2
920
---
921
foo: 1
922
bar: 2
923
EOF;
924
        $this->assertEquals(array('foo' => 1, 'bar' => 2), $this->parser->parse($yaml));
925
    }
926
927
    public function testFloatKeys()
928
    {
@@ 927-943 (lines=17) @@
924
        $this->assertEquals(array('foo' => 1, 'bar' => 2), $this->parser->parse($yaml));
925
    }
926
927
    public function testFloatKeys()
928
    {
929
        $yaml = <<<'EOF'
930
foo:
931
    1.2: "bar"
932
    1.3: "baz"
933
EOF;
934
935
        $expected = array(
936
            'foo' => array(
937
                '1.2' => 'bar',
938
                '1.3' => 'baz',
939
            ),
940
        );
941
942
        $this->assertEquals($expected, $this->parser->parse($yaml));
943
    }
944
945
    /**
946
     * @group legacy