Phpro\SoapClient\Event\ResponseEvent::getClient PHP Method

getClient() public method

public getClient ( ) : Client
return Phpro\SoapClient\Client
    public function getClient()
    {
        return $this->client;
    }

Usage Example

 function it_should_be_able_to_register_a_response(Client $client, RequestEvent $requestEvent, ResultInterface $result, ResponseEvent $responseEvent)
 {
     $debugData = ['request' => ['headers' => 'SoapRequestHeader', 'body' => '<?xml version="1.0" encoding="UTF-8"?><body>SoapRequestBody</body>'], 'response' => ['headers' => 'SoapResponseHeader', 'body' => '<?xml version="1.0" encoding="UTF-8"?><body>SoapResponseBody</body>']];
     $client->debugLastSoapRequest()->willReturn($debugData);
     $responseEvent->getResponse()->willReturn($result);
     $responseEvent->getClient()->willReturn($client);
     $this->onClientRequest($requestEvent);
     $this->onClientResponse($responseEvent);
     $this->getCalls()->shouldHaveCount(1);
 }
All Usage Examples Of Phpro\SoapClient\Event\ResponseEvent::getClient