Symfony\Component\BrowserKit\Client::getResponse PHP Method

getResponse() public method

Returns the current Response instance.
public getResponse ( ) : Symfony\Component\BrowserKit\Response
return Symfony\Component\BrowserKit\Response A Response instance
    public function getResponse()
    {
        return $this->response;
    }

Same methods

Client::getResponse ( ) : Symfony\Component\BrowserKit\Response

Usage Example

 /**
  * @return AuthenticateResponse
  */
 public function authenticate()
 {
     $this->client->request('POST', self::SING_IN_URI, ['username' => $this->username, 'password' => $this->password], [], ['HTTP_ACCEPT' => 'application/json']);
     $loginResponse = json_decode($this->client->getResponse()->getContent());
     $authenticateHeaders = ['HTTP_TOKEN' => isset($loginResponse->Token) ? $loginResponse->Token : null, 'HTTP_EXPIREAT' => isset($loginResponse->ExpireAt) ? $loginResponse->ExpireAt : null, 'HTTP_USERNAME' => isset($loginResponse->Username) ? $loginResponse->Username : null];
     return new AuthenticateResponse([], $authenticateHeaders);
 }
All Usage Examples Of Symfony\Component\BrowserKit\Client::getResponse