handle( $this->prophesize(ServerRequestInterface::class)->reveal() ); $json = json_decode((string) $response->getBody()); $this->assertInstanceOf(JsonResponse::class, $response); $this->assertTrue(isset($json->ack)); } }