public function testHasResponse() { $res = new Response(200); $e = new ParseException('foo', $res); $this->assertSame($res, $e->getResponse()); $this->assertEquals('foo', $e->getMessage()); }
public function __construct($message = '', ResponseInterface $response = null, \Exception $previous = null, \LibXMLError $error = null) { parent::__construct($message, $response, $previous); $this->error = $error; }