Code Duplication    Length = 14-15 lines in 2 locations

tests/PhpMndTest.php 1 location

@@ 17-31 (lines=15) @@
14
        $this->assertInstanceOf(PhpMndLoader::class, $this->mnd);
15
    }
16
17
    public function testGetOutput()
18
    {
19
        $expected = [
20
            'test.php' => [
21
                3 => 'Magic number: 7',
22
                4 => 'Magic number: 12',
23
            ],
24
            'test2.php' => [
25
                3 => 'Magic number: 7',
26
                4 => 'Magic number: 12',
27
            ],
28
        ];
29
30
        $this->assertSame($expected, $this->mnd->getLines());
31
    }
32
33
    /**
34
     * @dataProvider fileInputs

tests/PhpStanTest.php 1 location

@@ 17-30 (lines=14) @@
14
        $this->stan = new PhpStanLoader($file);
15
    }
16
17
    public function testGetOutput()
18
    {
19
        $expected = [
20
            'src/PhpStanLoader.php' => [
21
                45 => 'Access to an undefined property',
22
                51 => 'Access to an undefined property',
23
            ],
24
            'src/PhpCsLoader.php' => [
25
                71 => 'Parameter $message of method',
26
            ],
27
        ];
28
29
        $this->assertSame($expected, $this->stan->getLines());
30
    }
31
}
32