Open Monograph Press  3.3.0
Omnipay\Common\Message\AbstractRequestTest Class Reference
Inheritance diagram for Omnipay\Common\Message\AbstractRequestTest:

Public Member Functions

 setUp ()
 
 testAmount ()
 
 testAmountInvalidFormatThrowsException ()
 
 testAmountInvalidTypeThrowsException ()
 
 testAmountNegativeFloatThrowsException ()
 
 testAmountNegativeStringThrowsException ()
 
 testAmountPrecision ()
 
 testAmountPrecisionTooHigh ()
 
 testAmountThousandsSepThrowsException ()
 
 testAmountWithEmpty ()
 
 testAmountWithFloat ()
 
 testAmountWithIntStringThrowsException ()
 
 testAmountWithIntThrowsException ()
 
 testAmountZeroFloat ()
 
 testAmountZeroNotAllowed ()
 
 testAmountZeroString ()
 
 testCancelUrl ()
 
 testCanValidateExistingParameters ()
 
 testCard ()
 
 testCardReference ()
 
 testClientIp ()
 
 testConstruct ()
 
 testCurrency ()
 
 testCurrencyDecimals ()
 
 testCurrencyLowercase ()
 
 testCurrencyNull ()
 
 testCurrencyNumeric ()
 
 testDescription ()
 
 testFormatCurrency ()
 
 testFormatCurrencyNoDecimals ()
 
 testGetAmountInteger ()
 
 testGetAmountIntegerNoDecimals ()
 
 testGetAmountNoDecimals ()
 
 testGetAmountNoDecimalsRounding ()
 
 testGetParameters ()
 
 testGetResponseAfterRequestSent ()
 
 testGetResponseBeforeRequestSent ()
 
 testInitializeAfterRequestSent ()
 
 testInitializedParametersAreSet ()
 
 testInitializeWithParams ()
 
 testInvalidParametersThrowsException ()
 
 testIssuer ()
 
 testItemsArray ()
 
 testItemsBag ()
 
 testNoCurrencyReturnedIfCurrencyNotSet ()
 
 testNotifyUrl ()
 
 testPaymentMethod ()
 
 testReturnUrl ()
 
 testSend ()
 
 testSetCardWithArray ()
 
 testSetParameterAfterRequestSent ()
 
 testToken ()
 
 testTransactionId ()
 
 testTransactionReference ()
 

Detailed Description

Definition at line 10 of file AbstractRequestTest.php.

Member Function Documentation

◆ setUp()

Omnipay\Common\Message\AbstractRequestTest::setUp ( )

Definition at line 12 of file AbstractRequestTest.php.

◆ testAmount()

Omnipay\Common\Message\AbstractRequestTest::testAmount ( )

Definition at line 88 of file AbstractRequestTest.php.

◆ testAmountInvalidFormatThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountInvalidFormatThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 228 of file AbstractRequestTest.php.

◆ testAmountInvalidTypeThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountInvalidTypeThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 237 of file AbstractRequestTest.php.

◆ testAmountNegativeFloatThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountNegativeFloatThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 255 of file AbstractRequestTest.php.

◆ testAmountNegativeStringThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountNegativeStringThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 246 of file AbstractRequestTest.php.

◆ testAmountPrecision()

Omnipay\Common\Message\AbstractRequestTest::testAmountPrecision ( )

Definition at line 130 of file AbstractRequestTest.php.

◆ testAmountPrecisionTooHigh()

Omnipay\Common\Message\AbstractRequestTest::testAmountPrecisionTooHigh ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

We still want to catch obvious fractions of the minor units that are not precision errors at a much lower level.

Definition at line 158 of file AbstractRequestTest.php.

◆ testAmountThousandsSepThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountThousandsSepThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 219 of file AbstractRequestTest.php.

◆ testAmountWithEmpty()

Omnipay\Common\Message\AbstractRequestTest::testAmountWithEmpty ( )

Definition at line 100 of file AbstractRequestTest.php.

◆ testAmountWithFloat()

Omnipay\Common\Message\AbstractRequestTest::testAmountWithFloat ( )

Definition at line 94 of file AbstractRequestTest.php.

◆ testAmountWithIntStringThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountWithIntStringThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 195 of file AbstractRequestTest.php.

◆ testAmountWithIntThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testAmountWithIntThrowsException ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 185 of file AbstractRequestTest.php.

◆ testAmountZeroFloat()

Omnipay\Common\Message\AbstractRequestTest::testAmountZeroFloat ( )

Definition at line 106 of file AbstractRequestTest.php.

◆ testAmountZeroNotAllowed()

Omnipay\Common\Message\AbstractRequestTest::testAmountZeroNotAllowed ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException @expectedExceptionMessage A zero amount is not allowed.

Definition at line 122 of file AbstractRequestTest.php.

◆ testAmountZeroString()

Omnipay\Common\Message\AbstractRequestTest::testAmountZeroString ( )

Definition at line 112 of file AbstractRequestTest.php.

◆ testCancelUrl()

Omnipay\Common\Message\AbstractRequestTest::testCancelUrl ( )

Definition at line 356 of file AbstractRequestTest.php.

◆ testCanValidateExistingParameters()

Omnipay\Common\Message\AbstractRequestTest::testCanValidateExistingParameters ( )

Definition at line 413 of file AbstractRequestTest.php.

◆ testCard()

Omnipay\Common\Message\AbstractRequestTest::testCard ( )

Definition at line 58 of file AbstractRequestTest.php.

◆ testCardReference()

Omnipay\Common\Message\AbstractRequestTest::testCardReference ( )

Definition at line 82 of file AbstractRequestTest.php.

◆ testClientIp()

Omnipay\Common\Message\AbstractRequestTest::testClientIp ( )

Definition at line 344 of file AbstractRequestTest.php.

◆ testConstruct()

Omnipay\Common\Message\AbstractRequestTest::testConstruct ( )

Definition at line 34 of file AbstractRequestTest.php.

◆ testCurrency()

Omnipay\Common\Message\AbstractRequestTest::testCurrency ( )

Definition at line 261 of file AbstractRequestTest.php.

◆ testCurrencyDecimals()

Omnipay\Common\Message\AbstractRequestTest::testCurrencyDecimals ( )

Definition at line 285 of file AbstractRequestTest.php.

◆ testCurrencyLowercase()

Omnipay\Common\Message\AbstractRequestTest::testCurrencyLowercase ( )

Definition at line 267 of file AbstractRequestTest.php.

◆ testCurrencyNull()

Omnipay\Common\Message\AbstractRequestTest::testCurrencyNull ( )

Definition at line 273 of file AbstractRequestTest.php.

◆ testCurrencyNumeric()

Omnipay\Common\Message\AbstractRequestTest::testCurrencyNumeric ( )

Definition at line 279 of file AbstractRequestTest.php.

◆ testDescription()

Omnipay\Common\Message\AbstractRequestTest::testDescription ( )

Definition at line 302 of file AbstractRequestTest.php.

◆ testFormatCurrency()

Omnipay\Common\Message\AbstractRequestTest::testFormatCurrency ( )

Definition at line 291 of file AbstractRequestTest.php.

◆ testFormatCurrencyNoDecimals()

Omnipay\Common\Message\AbstractRequestTest::testFormatCurrencyNoDecimals ( )

Definition at line 296 of file AbstractRequestTest.php.

◆ testGetAmountInteger()

Omnipay\Common\Message\AbstractRequestTest::testGetAmountInteger ( )

Definition at line 203 of file AbstractRequestTest.php.

◆ testGetAmountIntegerNoDecimals()

Omnipay\Common\Message\AbstractRequestTest::testGetAmountIntegerNoDecimals ( )

Definition at line 209 of file AbstractRequestTest.php.

◆ testGetAmountNoDecimals()

Omnipay\Common\Message\AbstractRequestTest::testGetAmountNoDecimals ( )

Definition at line 164 of file AbstractRequestTest.php.

◆ testGetAmountNoDecimalsRounding()

Omnipay\Common\Message\AbstractRequestTest::testGetAmountNoDecimalsRounding ( )

@expectedException Omnipay\Common\Exception\InvalidRequestException

Definition at line 174 of file AbstractRequestTest.php.

◆ testGetParameters()

Omnipay\Common\Message\AbstractRequestTest::testGetParameters ( )

Definition at line 389 of file AbstractRequestTest.php.

◆ testGetResponseAfterRequestSent()

Omnipay\Common\Message\AbstractRequestTest::testGetResponseAfterRequestSent ( )

Definition at line 457 of file AbstractRequestTest.php.

◆ testGetResponseBeforeRequestSent()

Omnipay\Common\Message\AbstractRequestTest::testGetResponseBeforeRequestSent ( )

@expectedException \Omnipay\Common\Exception\RuntimeException @expectedExceptionMessage You must call send() before accessing the Response!

Definition at line 451 of file AbstractRequestTest.php.

◆ testInitializeAfterRequestSent()

Omnipay\Common\Message\AbstractRequestTest::testInitializeAfterRequestSent ( )

@expectedException \Omnipay\Common\Exception\RuntimeException @expectedExceptionMessage Request cannot be modified after it has been sent!

Definition at line 50 of file AbstractRequestTest.php.

◆ testInitializedParametersAreSet()

Omnipay\Common\Message\AbstractRequestTest::testInitializedParametersAreSet ( )

Definition at line 380 of file AbstractRequestTest.php.

◆ testInitializeWithParams()

Omnipay\Common\Message\AbstractRequestTest::testInitializeWithParams ( )

Definition at line 40 of file AbstractRequestTest.php.

◆ testInvalidParametersThrowsException()

Omnipay\Common\Message\AbstractRequestTest::testInvalidParametersThrowsException ( )

@expectedException \Omnipay\Common\Exception\InvalidRequestException

Definition at line 424 of file AbstractRequestTest.php.

◆ testIssuer()

Omnipay\Common\Message\AbstractRequestTest::testIssuer ( )

Definition at line 368 of file AbstractRequestTest.php.

◆ testItemsArray()

Omnipay\Common\Message\AbstractRequestTest::testItemsArray ( )

Definition at line 320 of file AbstractRequestTest.php.

◆ testItemsBag()

Omnipay\Common\Message\AbstractRequestTest::testItemsBag ( )

Definition at line 335 of file AbstractRequestTest.php.

References Omnipay\Common\ItemBag\add().

◆ testNoCurrencyReturnedIfCurrencyNotSet()

Omnipay\Common\Message\AbstractRequestTest::testNoCurrencyReturnedIfCurrencyNotSet ( )

Definition at line 431 of file AbstractRequestTest.php.

◆ testNotifyUrl()

Omnipay\Common\Message\AbstractRequestTest::testNotifyUrl ( )

Definition at line 362 of file AbstractRequestTest.php.

◆ testPaymentMethod()

Omnipay\Common\Message\AbstractRequestTest::testPaymentMethod ( )

Definition at line 374 of file AbstractRequestTest.php.

◆ testReturnUrl()

Omnipay\Common\Message\AbstractRequestTest::testReturnUrl ( )

Definition at line 350 of file AbstractRequestTest.php.

◆ testSend()

Omnipay\Common\Message\AbstractRequestTest::testSend ( )

Definition at line 436 of file AbstractRequestTest.php.

◆ testSetCardWithArray()

Omnipay\Common\Message\AbstractRequestTest::testSetCardWithArray ( )

Definition at line 66 of file AbstractRequestTest.php.

◆ testSetParameterAfterRequestSent()

Omnipay\Common\Message\AbstractRequestTest::testSetParameterAfterRequestSent ( )

@expectedException \Omnipay\Common\Exception\RuntimeException @expectedExceptionMessage Request cannot be modified after it has been sent!

Definition at line 405 of file AbstractRequestTest.php.

◆ testToken()

Omnipay\Common\Message\AbstractRequestTest::testToken ( )

Definition at line 76 of file AbstractRequestTest.php.

◆ testTransactionId()

Omnipay\Common\Message\AbstractRequestTest::testTransactionId ( )

Definition at line 308 of file AbstractRequestTest.php.

◆ testTransactionReference()

Omnipay\Common\Message\AbstractRequestTest::testTransactionReference ( )

Definition at line 314 of file AbstractRequestTest.php.


The documentation for this class was generated from the following file: