You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
620 B
PHTML
23 lines
620 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
namespace Engelsystem\Test\Unit\Http\Exceptions;
|
||
|
|
||
|
use Engelsystem\Http\Exceptions\HttpNotFound;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class HttpNotFoundTest extends TestCase
|
||
|
{
|
||
|
/**
|
||
|
* @covers \Engelsystem\Http\Exceptions\HttpNotFound::__construct
|
||
|
*/
|
||
|
public function testConstruct()
|
||
|
{
|
||
|
$exception = new HttpNotFound();
|
||
|
$this->assertEquals(404, $exception->getStatusCode());
|
||
|
$this->assertEquals('', $exception->getMessage());
|
||
|
|
||
|
$exception = new HttpNotFound('Nothing to see here!');
|
||
|
$this->assertEquals('Nothing to see here!', $exception->getMessage());
|
||
|
}
|
||
|
}
|