3
namespace GuzzleHttp\Tests\Event;
5
use GuzzleHttp\Exception\ParseException;
6
use GuzzleHttp\Message\Response;
9
* @covers GuzzleHttp\Exception\ParseException
11
class ParseExceptionTest extends \PHPUnit_Framework_TestCase
13
public function testHasResponse()
15
$res = new Response(200);
16
$e = new ParseException('foo', $res);
17
$this->assertSame($res, $e->getResponse());
18
$this->assertEquals('foo', $e->getMessage());