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
627 B
PHP

<?php
namespace Engelsystem\Test\Unit\Http\Exceptions;
use Engelsystem\Http\Exceptions\HttpAuthExpired;
use PHPUnit\Framework\TestCase;
class HttpAuthExpiredTest extends TestCase
{
/**
* @covers \Engelsystem\Http\Exceptions\HttpAuthExpired::__construct
*/
public function testConstruct()
{
$exception = new HttpAuthExpired();
$this->assertEquals(419, $exception->getStatusCode());
$this->assertEquals('Authentication Expired', $exception->getMessage());
$exception = new HttpAuthExpired('Oops!');
$this->assertEquals('Oops!', $exception->getMessage());
}
}