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 WEBEWEB
* 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\CURLMethodNotAllowedException;
* cURL method not allowed exception test.
* @author webeweb <https://github.com/webeweb/>
* @package WBW\Library\CURL\Tests\Exception
* @final
final class CURLInvalidMessageClassExceptionTest extends PHPUnit_Framework_TestCase {
* Tests the __construct() method.
* @return void
public function testConstruct() {
$ex = new CURLMethodNotAllowedException("exception");
$res = "The method \"exception\" is not allowed";
$this->assertEquals($res, $ex->getMessage());
}