assertInstanceOf(\Phred\Http\Kernel::class, $app); $request = new ServerRequest('GET', '/_phred/health'); $response = $app->handle($request); $this->assertSame(200, $response->getStatusCode()); $this->assertSame('application/json', $response->getHeaderLine('Content-Type')); $data = json_decode((string) $response->getBody(), true); $this->assertIsArray($data); $this->assertArrayHasKey('ok', $data); $this->assertTrue($data['ok']); } }