Code Duplication    Length = 11-11 lines in 3 locations

tests/InvokableFiltererTest.php 3 locations

@@ 19-29 (lines=11) @@
16
     * @test
17
     * @covers ::execute
18
     */
19
    public function execute()
20
    {
21
        $expected = new FilterResponse(['some' => 'response']);
22
        $mock = $this->getMockFilterer();
23
        $mock->method('execute')->willReturn($expected);
24
25
        $filterer = new InvokableFilterer($mock);
26
        $actual = $filterer->execute([]);
27
28
        $this->assertSame($expected, $actual);
29
    }
30
31
    /**
32
     * @test
@@ 35-45 (lines=11) @@
32
     * @test
33
     * @covers ::getAliases
34
     */
35
    public function getAliases()
36
    {
37
        $expected = ['some' => 'alias'];
38
        $mock = $this->getMockFilterer();
39
        $mock->method('getAliases')->willReturn($expected);
40
41
        $filterer = new InvokableFilterer($mock);
42
        $actual = $filterer->getAliases();
43
44
        $this->assertSame($expected, $actual);
45
    }
46
47
    /**
48
     * @test
@@ 51-61 (lines=11) @@
48
     * @test
49
     * @covers ::getSpecification
50
     */
51
    public function getSpecification()
52
    {
53
        $expected = ['some' => 'specification'];
54
        $mock = $this->getMockFilterer();
55
        $mock->method('getSpecification')->willReturn($expected);
56
57
        $filterer = new InvokableFilterer($mock);
58
        $actual = $filterer->getSpecification();
59
60
        $this->assertSame($expected, $actual);
61
    }
62
63
    /**
64
     * @test