Code Duplication    Length = 7-7 lines in 2 locations

tests/ResponseTest.php 2 locations

@@ 14-20 (lines=7) @@
11
    /**
12
     * @throws \Dgame\Ensurance\Exception\EnsuranceException
13
     */
14
    public function testSuccessFactory(): void
15
    {
16
        $jsend = JSend::success(['Erfolgreich!']);
17
18
        $this->assertTrue($jsend->isSuccess());
19
        $this->assertEquals(['Erfolgreich!'], $jsend->getData());
20
    }
21
22
    /**
23
     * @throws \Dgame\Ensurance\Exception\EnsuranceException
@@ 25-31 (lines=7) @@
22
    /**
23
     * @throws \Dgame\Ensurance\Exception\EnsuranceException
24
     */
25
    public function testFailFactory(): void
26
    {
27
        $jsend = JSend::fail(['Irgendwas lief schief']);
28
29
        $this->assertTrue($jsend->isFail());
30
        $this->assertEquals(['Irgendwas lief schief'], $jsend->getData());
31
    }
32
33
    public function testErrorFactory(): void
34
    {