Code Duplication    Length = 8-8 lines in 2 locations

tests/Haml/FrontMatterFilterTest.php 2 locations

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