for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the curl-library package.
*
* (c) 2017 NdC/WBW
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\CURL\Tests\Exception;
use PHPUnit_Framework_TestCase;
use WBW\Library\CURL\Exception\CURLRequestCallException;
use WBW\Library\CURL\Response\CURLResponse;
* CURL request call exception test.
* @author NdC/WBW <https://github.com/webeweb/>
* @package WBW\Library\CURL\Tests\Exception
* @final
final class CURLRequestCallExceptionTest extends PHPUnit_Framework_TestCase {
* Tests the __constructor() method.
* @return void
public function testConstructor() {
$obj = new CURLRequestCallException("exception", new CURLResponse());
$this->assertEquals("exception", $obj->getMessage());
$this->assertEquals(null, $obj->getResponse()->getRequestBody());
$this->assertEquals([], $obj->getResponse()->getRequestHeader());
$this->assertEquals(null, $obj->getResponse()->getRequestURL());
$this->assertEquals(null, $obj->getResponse()->getResponseBody());
$this->assertEquals([], $obj->getResponse()->getResponseHeader());
$this->assertEquals([], $obj->getResponse()->getResponseInfo());
}