2020-05-11 23:20:28 +02:00
|
|
|
<?php
|
|
|
|
|
2023-02-03 20:41:59 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-05-11 23:20:28 +02:00
|
|
|
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
|
|
|
|
*/
|
2022-12-14 19:15:20 +01:00
|
|
|
public function testRender(): void
|
2020-05-11 23:20:28 +02:00
|
|
|
{
|
|
|
|
$handler = new NullHandler();
|
|
|
|
$request = new Request();
|
|
|
|
$exception = new ErrorException();
|
|
|
|
|
|
|
|
$this->expectOutputString('');
|
|
|
|
$handler->render($request, $exception);
|
|
|
|
}
|
|
|
|
}
|