~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/guzzlehttp/guzzle/tests/Exception/ParseExceptionTest.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}