1 | <?php |
||
25 | final class CURLRequestCallExceptionTest extends PHPUnit_Framework_TestCase { |
||
26 | |||
27 | /** |
||
28 | * Tests the __constructor() method. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function testConstructor() { |
||
33 | |||
34 | $obj = new CURLRequestCallException("exception", new CURLResponse()); |
||
35 | |||
36 | $this->assertEquals("exception", $obj->getMessage()); |
||
37 | $this->assertEquals(null, $obj->getResponse()->getRequestBody()); |
||
38 | $this->assertEquals([], $obj->getResponse()->getRequestHeader()); |
||
39 | $this->assertEquals(null, $obj->getResponse()->getRequestURL()); |
||
40 | $this->assertEquals(null, $obj->getResponse()->getResponseBody()); |
||
41 | $this->assertEquals([], $obj->getResponse()->getResponseHeader()); |
||
42 | $this->assertEquals([], $obj->getResponse()->getResponseInfo()); |
||
43 | } |
||
44 | |||
45 | } |
||
46 |