public function testCreatesExceptionWithPrintableBodySummary($content) { $response = new Response(500, [], $content); $e = RequestException::create(new Request('GET', '/'), $response); $this->assertContains($content, $e->getMessage()); $this->assertInstanceOf('GuzzleHttp\\Exception\\RequestException', $e); }