Code Duplication    Length = 13-14 lines in 2 locations

tests/Behaviour/CommandBusTest.php 2 locations

@@ 53-65 (lines=13) @@
50
    /**
51
     * @test
52
     */
53
    public function itShouldHandleWithPreMiddleWare()
54
    {
55
        $this->app->setCommand(new WithPreMiddleWareCommand());
56
57
        $this->app->doRun($this->input, $this->outputInterface);
58
59
        $handlerFilename = __DIR__ . '/' . WithPreMiddleWareHandler::FILE_TEST;
60
        $preHandlerFilename = __DIR__.'/'. PreMiddleWareHandler::FILE_TEST;
61
        $this->assertFalse(file_exists($preHandlerFilename));
62
        $this->assertTrue(file_exists($handlerFilename));
63
64
        unlink($handlerFilename);
65
    }
66
67
    /**
68
     * @test
@@ 71-84 (lines=14) @@
68
     * @test
69
     * @group active
70
     */
71
    public function itShouldHandleWithPostMiddleWare()
72
    {
73
        $this->app->setCommand(new WithPostMiddleWareCommand());
74
75
        $this->app->doRun($this->input, $this->outputInterface);
76
77
        $handlerFilename = __DIR__ . '/' . WithPostMiddleWareHandler::FILE_TEST;
78
        $postHandlerFilename = __DIR__.'/'. PostMiddleWareHandler::FILE_TEST;
79
        $this->assertFalse(file_exists($handlerFilename));
80
        $this->assertTrue(file_exists($postHandlerFilename));
81
82
        unlink($postHandlerFilename);
83
84
    }
85
}
86