engelsystem/tests/Unit/Exceptions/Handlers/NullHandlerTest.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
574 B
PHP
Raw Normal View History

<?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(): void
{
$handler = new NullHandler();
$request = new Request();
$exception = new ErrorException();
$this->expectOutputString('');
$handler->render($request, $exception);
}
}