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()); } }