PHP Class Payum\Paypal\Ipn\Tests\ApiTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: payum/payum

Public Methods

Method Description
couldBeConstructedWithHttpClientAndOptions ( )
shouldProxyWholeNotificationToClientSend ( )
shouldReturnInvalidIfResponseContentContainsSomethingNotEqualToVerified ( )
shouldReturnInvalidIfResponseContentInvalid ( )
shouldReturnLiveIpnEndpointIfSandboxSetFalseInConstructor ( )
shouldReturnSandboxIpnEndpointIfSandboxSetTrueInConstructor ( )
shouldReturnVerifiedIfResponseContentVerified ( )
throwIfResponseStatusNotOk ( )
throwIfSandboxOptionNotSetInConstructor ( )

Protected Methods

Method Description
createHttpClientMock ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
createHttpMessageFactory ( ) : Http\Message\MessageFactory
createSuccessHttpClientStub ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

Method Details

couldBeConstructedWithHttpClientAndOptions() public method

createHttpClientMock() protected method

protected createHttpClientMock ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
return PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

createHttpMessageFactory() protected method

protected createHttpMessageFactory ( ) : Http\Message\MessageFactory
return Http\Message\MessageFactory

createSuccessHttpClientStub() protected method

protected createSuccessHttpClientStub ( ) : PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface
return PHPUnit_Framework_MockObject_MockObject | Payum\Core\HttpClientInterface

shouldProxyWholeNotificationToClientSend() public method

shouldReturnInvalidIfResponseContentContainsSomethingNotEqualToVerified() public method

shouldReturnInvalidIfResponseContentInvalid() public method

shouldReturnLiveIpnEndpointIfSandboxSetFalseInConstructor() public method

shouldReturnSandboxIpnEndpointIfSandboxSetTrueInConstructor() public method

shouldReturnVerifiedIfResponseContentVerified() public method

throwIfResponseStatusNotOk() public method

throwIfSandboxOptionNotSetInConstructor() public method