Code Duplication    Length = 7-7 lines in 3 locations

tests/FrontMatterTest.php 3 locations

@@ 36-42 (lines=7) @@
33
    /**
34
     * @dataProvider getYaml
35
     */
36
    public function testDumpYaml($string, $data, $content)
37
    {
38
        $frontMatter = new FrontMatter();
39
        $document = new Document($content, $data);
40
41
        $this->assertEquals($string, $frontMatter->dump($document));
42
    }
43
44
    /**
45
     * @dataProvider getSeparator
@@ 60-66 (lines=7) @@
57
    /**
58
     * @dataProvider getSeparator
59
     */
60
    public function testDumpYamlWithCustomSeparator($string, $data, $content)
61
    {
62
        $frontMatter = new FrontMatter(null, '<!--', '-->');
63
        $document = new Document($content, $data);
64
65
        $this->assertEquals($string, $frontMatter->dump($document));
66
    }
67
68
    /**
69
     * @dataProvider getJson
@@ 85-91 (lines=7) @@
82
    /**
83
     * @dataProvider getJson
84
     */
85
    public function testDumpToJson($string, $data, $content)
86
    {
87
        $frontMatter = new FrontMatter(new JsonProcessor());
88
89
        $document = new Document($content, $data);
90
        $this->assertEquals($string, $frontMatter->dump($document));
91
    }
92
93
    public function getYaml()
94
    {