scratch – Blame information for rev
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
87 | office | 1 | <?php |
2 | |||
3 | namespace GuzzleHttp\Tests\Event; |
||
4 | |||
5 | use GuzzleHttp\Exception\ParseException; |
||
6 | use GuzzleHttp\Message\Response; |
||
7 | |||
8 | /** |
||
9 | * @covers GuzzleHttp\Exception\ParseException |
||
10 | */ |
||
11 | class ParseExceptionTest extends \PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | public function testHasResponse() |
||
14 | { |
||
15 | $res = new Response(200); |
||
16 | $e = new ParseException('foo', $res); |
||
17 | $this->assertSame($res, $e->getResponse()); |
||
18 | $this->assertEquals('foo', $e->getMessage()); |
||
19 | } |
||
20 | } |