25 lines
568 B
PHP
25 lines
568 B
PHP
<?php
|
|
|
|
namespace Engelsystem\Test\Unit\Exceptions\Handlers;
|
|
|
|
use Engelsystem\Exceptions\Handlers\NullHandler;
|
|
use Engelsystem\Http\Request;
|
|
use ErrorException;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class NullHandlerTest extends TestCase
|
|
{
|
|
/**
|
|
* @covers \Engelsystem\Exceptions\Handlers\NullHandler::render
|
|
*/
|
|
public function testRender()
|
|
{
|
|
$handler = new NullHandler();
|
|
$request = new Request();
|
|
$exception = new ErrorException();
|
|
|
|
$this->expectOutputString('');
|
|
$handler->render($request, $exception);
|
|
}
|
|
}
|