GuzzleHttp\Tests\Event\RequestExceptionTest::testCreatesServerErrorResponseException PHP Method

testCreatesServerErrorResponseException() public method

    public function testCreatesServerErrorResponseException()
    {
        $e = RequestException::create(new Request('GET', '/'), new Response(500));
        $this->assertContains('GET /', $e->getMessage());
        $this->assertContains('500 Internal Server Error', $e->getMessage());
        $this->assertInstanceOf('GuzzleHttp\\Exception\\ServerException', $e);
    }