Code Duplication    Length = 14-14 lines in 2 locations

tests/HelpersTest.php 2 locations

@@ 22-35 (lines=14) @@
19
    }
20
21
    /** @test */
22
    public function abort_if_helper(): void
23
    {
24
        abort_if(false, 123, 'Foo');
25
26
        $this->assertTrue(true);
27
28
        $containerMock = $this->createMock(Container::class);
29
30
        $containerMock->expects($this->once())->method('abort')->with(456, 'Bar');
31
32
        Container::setInstance($containerMock);
33
34
        abort_if(true, 456, 'Bar');
35
    }
36
37
    /** @test */
38
    public function abort_unless_helper(): void
@@ 38-51 (lines=14) @@
35
    }
36
37
    /** @test */
38
    public function abort_unless_helper(): void
39
    {
40
        abort_unless(true, 123, 'Foo');
41
42
        $this->assertTrue(true);
43
44
        $containerMock = $this->createMock(Container::class);
45
46
        $containerMock->expects($this->once())->method('abort')->with(456, 'Bar');
47
48
        Container::setInstance($containerMock);
49
50
        abort_unless(false, 456, 'Bar');
51
    }
52
53
    /** @test */
54
    public function app_helper(): void