Skip to content

Commit

Permalink
QA: Inline with
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Apr 21, 2024
1 parent 0d07ae0 commit 9a4500e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/php/web/unittest/ApplicationTest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function filter($req, $res, $invocation) {
* @return var[] A tuple of request and response instances
*/
private function handle($routes) {
with ($app= newinstance(Application::class, [$this->environment], ['routes' => $routes])); {
$request= new Request(new TestInput('GET', '/'));
$response= new Response(new TestOutput());
foreach ($app->service($request, $response) ?? [] as $_) { }
return [$request, $response];
}
$app= newinstance(Application::class, [$this->environment], ['routes' => $routes]);
$request= new Request(new TestInput('GET', '/'));
$response= new Response(new TestOutput());

foreach ($app->service($request, $response) ?? [] as $_) { }
return [$request, $response];
}

/**
Expand Down

0 comments on commit 9a4500e

Please sign in to comment.