for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the core-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\Core\Tests\Exception\Argument;
use PHPUnit_Framework_TestCase;
use WBW\Library\Core\Exception\Argument\TimestampArgumentException;
* Timestamp argument exception test.
* @author NdC/WBW <https://github.com/webeweb/>
* @package WBW\Library\Core\Tests\Exception\Argument
* @final
final class TimestampArgumentExceptionTest extends PHPUnit_Framework_TestCase {
* Tests the __construct() method.
* @return void
public function testConstruct() {
$ex = new TimestampArgumentException("exception");
$res = "The argument \"exception\" is not a timestamp";
$this->assertEquals($res, $ex->getMessage());
}