spec\Mdb\PayPal\Ipn\Service\GuzzleServiceSpec::it_should_throw_a_service_exception_when_a_request_fails PHP 메소드

it_should_throw_a_service_exception_when_a_request_fails() 공개 메소드

public it_should_throw_a_service_exception_when_a_request_fails ( ClientStub $httpClient, Message $message )
$httpClient ClientStub
$message Mdb\PayPal\Ipn\Message
    function it_should_throw_a_service_exception_when_a_request_fails(ClientStub $httpClient, Message $message)
    {
        $httpClient->post(Argument::type('string'), Argument::type('array'))->willThrow('Exception');
        $message->getAll()->willReturn(['foo' => 'bar']);
        $this->shouldThrow('Mdb\\PayPal\\Ipn\\Exception\\ServiceException')->during('verifyIpnMessage', array($message));
    }