/** @test */ public function it_should_return_client_info() { $response = new Response(); $clientInfo = ['ip' => '127.0.0.1']; $response->fill(['client_context' => $clientInfo]); $this->assertEquals($clientInfo, $response->getClientInfo()); }
/** * Simply proxies call to Response object. * * @return array|null */ public function getClientInfo() { return $this->response->getClientInfo(); }