Some extra minor improvements

This commit is contained in:
Alejandro Celaya
2019-11-02 19:08:07 +01:00
parent 7030138ff4
commit 9abaa243e0
4 changed files with 9 additions and 13 deletions

View File

@@ -130,13 +130,13 @@ class NotFoundHandlerTest extends TestCase
{
$request = ServerRequestFactory::fromGlobals();
yield [$request, NotFoundHandler::NOT_FOUND_ERROR_TEMPLATE];
yield [$request, NotFoundHandler::NOT_FOUND_TEMPLATE];
yield [
$request->withAttribute(
RouteResult::class,
RouteResult::fromRoute(new Route('', $this->prophesize(MiddlewareInterface::class)->reveal()))
),
NotFoundHandler::INVALID_SHORT_CODE_ERROR_TEMPLATE,
NotFoundHandler::INVALID_SHORT_CODE_TEMPLATE,
];
}
}