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