From 48e2b1fb18f0bd503474d9acac3025736f6d303a Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Tue, 29 Apr 2025 02:54:37 +0000 Subject: [PATCH] Add an async handler update --- app/tests/Handler/AsyncHandlerTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/tests/Handler/AsyncHandlerTest.php b/app/tests/Handler/AsyncHandlerTest.php index 6f396ca..3280b9b 100644 --- a/app/tests/Handler/AsyncHandlerTest.php +++ b/app/tests/Handler/AsyncHandlerTest.php @@ -30,5 +30,10 @@ class AsyncHandlerTest extends TestCase $response = $app->handle($request); $this->assertStringContainsString('
  • 1
  • ', $response->getBody()); + + $request = $this->createRequest('GET', '/test', [ 'Accept' => 'application/json']); + $response = $app->handle($request); + + $this->assertEquals('{"list":[1,2,3]}', $response->getBody()); } }