Add an async handler update
This commit is contained in:
parent
9dc3d9bdf2
commit
48e2b1fb18
@ -30,5 +30,10 @@ class AsyncHandlerTest extends TestCase
|
||||
$response = $app->handle($request);
|
||||
|
||||
$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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user