Code Duplication    Length = 10-10 lines in 2 locations

Tests/MiddlewarePipeTest.php 1 location

@@ 11-20 (lines=10) @@
8
 */
9
class MiddlewarePipeTest extends NimoTestCase
10
{
11
    public function testEmptyStack()
12
    {
13
        $stack = new MiddlewarePipe();
14
        $answerRes = $this->getResponseMock();
15
        $request = $this->getRequestMock();
16
17
        $handler = $this->assertedHandler($request, $answerRes);
18
        $res = $stack->process($request, $handler);
19
        self::assertSame($answerRes, $res);
20
    }
21
22
    public function testAppend()
23
    {

Tests/NoopMiddlewareTest.php 1 location

@@ 11-20 (lines=10) @@
8
class NoopMiddlewareTest extends NimoTestCase
9
{
10
11
    public function testNoopMiddleware()
12
    {
13
        $requst = $this->getRequestMock();
14
        $response = $this->getResponseMock();
15
        $handler = $this->assertedHandler($requst, $response);
16
        $middleware = new NoopMiddleware();
17
18
        $actualResponse = $middleware->process($requst, $handler);
19
        Assert::assertSame($response, $actualResponse);
20
    }
21
}
22