Code Duplication    Length = 8-8 lines in 2 locations

tests/Haml/FrontMatterFilterTest.php 2 locations

@@ 36-43 (lines=8) @@
33
        $this->filter = new FrontMatterFilter($this->frontMatter, $this->originalFilter);
34
    }
35
36
    public function testIsOptimizable()
37
    {
38
        $renderer = $this->createMock(RendererAbstract::class);
39
        $node = $this->createMock(Filter::class);
40
41
        $this->originalFilter->method('isOptimizable')->with($renderer, $node, $options = [])->willReturn(true);
42
        $this->assertTrue($this->filter->isOptimizable($renderer, $node, $options));
43
    }
44
45
    public function testOptimize()
46
    {
@@ 45-52 (lines=8) @@
42
        $this->assertTrue($this->filter->isOptimizable($renderer, $node, $options));
43
    }
44
45
    public function testOptimize()
46
    {
47
        $renderer = $this->createMock(RendererAbstract::class);
48
        $node = $this->createMock(Filter::class);
49
50
        $this->originalFilter->method('optimize')->with($renderer, $node, $options = [])->willReturn('foo');
51
        $this->assertEquals('foo', $this->filter->optimize($renderer, $node, $options));
52
    }
53
54
    public function testFilter()
55
    {