public function testHasResponse() { $res = new Response(200); $e = new ParseException('foo', $res); $this->assertSame($res, $e->getResponse()); $this->assertEquals('foo', $e->getMessage()); }