spec\Mdb\PayPal\Ipn\Service\GuzzleServiceSpec::it_should_return_a_service_response_when_verifying_an_ipn_message PHP Method

it_should_return_a_service_response_when_verifying_an_ipn_message() public method

public it_should_return_a_service_response_when_verifying_an_ipn_message ( ClientStub $httpClient, Message $message, Psr\Http\Message\ResponseInterface $response )
$httpClient ClientStub
$message Mdb\PayPal\Ipn\Message
$response Psr\Http\Message\ResponseInterface
    function it_should_return_a_service_response_when_verifying_an_ipn_message(ClientStub $httpClient, Message $message, ResponseInterface $response)
    {
        $response->getBody()->willReturn('foo');
        $httpClient->post(Argument::type('string'), Argument::type('array'))->willReturn($response);
        $message->getAll()->willReturn(['foo' => 'bar']);
        $response = $this->verifyIpnMessage($message);
        $response->shouldHaveType('Mdb\\PayPal\\Ipn\\ServiceResponse');
        $response->getBody()->shouldReturn('foo');
    }