Add an async handler update

This commit is contained in:
Dave Smith-Hayes 2025-04-29 02:54:37 +00:00
parent 9dc3d9bdf2
commit 48e2b1fb18

View File

@ -30,5 +30,10 @@ class AsyncHandlerTest extends TestCase
$response = $app->handle($request); $response = $app->handle($request);
$this->assertStringContainsString('<li>1</li>', $response->getBody()); $this->assertStringContainsString('<li>1</li>', $response->getBody());
$request = $this->createRequest('GET', '/test', [ 'Accept' => 'application/json']);
$response = $app->handle($request);
$this->assertEquals('{"list":[1,2,3]}', $response->getBody());
} }
} }