Skip to content

Commit 05c510a

Browse files
committed
refactor: remove duplicate HttpExceptionHandler call in router tester
1 parent 8d5b96f commit 05c510a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/Tempest/Framework/Testing/Http/HttpRouterTester.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,6 @@ public function sendRequest(Request $request): TestResponseHelper
137137
try {
138138
$response = $router->dispatch(map($request)->with(RequestToPsrRequestMapper::class)->do());
139139
} catch (Throwable $throwable) {
140-
$this->container->get(HttpExceptionHandler::class)->renderResponse($request, $throwable);
141-
142140
return new TestResponseHelper(
143141
response: $this->container->get(HttpExceptionHandler::class)->renderResponse($request, $throwable),
144142
request: $request,

0 commit comments

Comments
 (0)