Code Duplication    Length = 7-7 lines in 2 locations

tests/ResponseTest.php 2 locations

@@ 34-40 (lines=7) @@
31
        );
32
    }
33
34
    public function testSuccessFactory(): void
35
    {
36
        $response = JSendResponse::success(['Erfolgreich!']);
37
38
        $this->assertTrue($response->getStatus()->isSuccess());
39
        $this->assertEquals(['Erfolgreich!'], $response->getData());
40
    }
41
42
    public function testFailFactory(): void
43
    {
@@ 42-48 (lines=7) @@
39
        $this->assertEquals(['Erfolgreich!'], $response->getData());
40
    }
41
42
    public function testFailFactory(): void
43
    {
44
        $response = JSendResponse::fail(['Irgendwas lief schief']);
45
46
        $this->assertTrue($response->getStatus()->isFail());
47
        $this->assertEquals(['Irgendwas lief schief'], $response->getData());
48
    }
49
50
    public function testErrorFactory(): void
51
    {