spec\Mdb\PayPal\Ipn\VerifierSpec::it_should_throw_an_exception_when_an_unexpected_status_keyword_is_encountered PHP Method

it_should_throw_an_exception_when_an_unexpected_status_keyword_is_encountered() public method

public it_should_throw_an_exception_when_an_unexpected_status_keyword_is_encountered ( Message $message, ServiceResponse $serviceResponse )
$message Mdb\PayPal\Ipn\Message
$serviceResponse Mdb\PayPal\Ipn\ServiceResponse
    function it_should_throw_an_exception_when_an_unexpected_status_keyword_is_encountered(Message $message, ServiceResponse $serviceResponse)
    {
        $serviceResponse->getBody()->willReturn('foo');
        $this->shouldThrow('UnexpectedValueException')->duringVerify($message);
    }