for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ChadicusTest\Psr\Http\ServerMiddleware;
use Chadicus\Psr\Http\ServerMiddleware\AuthenticationException;
/**
* @coversDefaultClass \Chadicus\Psr\Http\ServerMiddleware\AuthenticationException
* @covers ::__construct
*/
final class AuthenticationExceptionTest extends \PHPUnit\Framework\TestCase
{
* Verify basic behavior of getStatusCode().
*
* @test
* @covers ::getStatusCode
* @return void
public function getStatusCode()
$exception = new AuthenticationException(200, 'A Reason');
$this->assertSame(200, $exception->getStatusCode());
}
* Verify basic behavior of getReasonPhrase().
* @covers ::getReasonPhrase
public function getReasonPhrase()
$this->assertSame('A Reason', $exception->getReasonPhrase());