Code Duplication    Length = 10-10 lines in 2 locations

src/Tests/Response/ErrorResponseFactory/SimpleErrorResponseFactoryTest.php 1 location

@@ 66-75 (lines=10) @@
63
    /**
64
     * @test
65
     */
66
    public function willSetResponseWithSimpleMessage()
67
    {
68
        foreach ([400 => 'Bad Request', 500 => 'Internal Server Error'] as $code => $message) {
69
            $response = $this->factory->create(
70
                new HttpError(new Request(), new Exception('Ai caramba!', $code), $this->logRefBuilder)
71
            );
72
            $this->assertNotNull($body = json_decode($response->getContent()));
73
            $this->assertEquals($message, $body->message);
74
        }
75
    }
76
77
    /**
78
     * @test

src/Tests/Response/ErrorResponseFactory/VndErrorResponseFactoryTest.php 1 location

@@ 80-89 (lines=10) @@
77
    /**
78
     * @test
79
     */
80
    public function willSetResponseWithSimpleMessage()
81
    {
82
        foreach ([400 => 'Bad Request', 500 => 'Internal Server Error'] as $code => $message) {
83
            $response = $this->factory->create(
84
                new HttpError(new Request(), new Exception('Ai caramba!', $code), $this->logRefBuilder)
85
            );
86
            $this->assertNotNull($body = json_decode($response->getContent()));
87
            $this->assertEquals($message, $body->message);
88
        }
89
    }
90
91
    /**
92
     * @test