Open Journal Systems  3.3.0
Omnipay\Common\CreditCardTest Class Reference
Inheritance diagram for Omnipay\Common\CreditCardTest:

Public Member Functions

 setUp ()
 
 testAddress1 ()
 
 testAddress2 ()
 
 testBillingAddress1 ()
 
 testBillingAddress2 ()
 
 testBillingCity ()
 
 testBillingCompany ()
 
 testBillingCountry ()
 
 testBillingFax ()
 
 testBillingFirstName ()
 
 testBillingLastName ()
 
 testBillingName ()
 
 testBillingPhone ()
 
 testBillingPhoneExtension ()
 
 testBillingPostcode ()
 
 testBillingState ()
 
 testBillingTitle ()
 
 testBirthday ()
 
 testBirthdayEmpty ()
 
 testCity ()
 
 testCompany ()
 
 testConstructWithParams ()
 
 testCountry ()
 
 testCustomBrandAddedTwiceReturnsFalse ()
 
 testCustomBrandWorks ()
 
 testCustomSupportedBrand ()
 
 testCvv ()
 
 testEmail ()
 
 testExpiryDate ()
 
 testExpiryMonth ()
 
 testExpiryMonthLeadingZeros ()
 
 testExpiryYear ()
 
 testExpiryYearTwoDigits ()
 
 testFax ()
 
 testFirstName ()
 
 testGender ()
 
 testGetBrandAmex ()
 
 testGetBrandDefault ()
 
 testGetBrandDinersClub ()
 
 testGetBrandDiscover ()
 
 testGetBrandJcb ()
 
 testGetBrandMasterCard ()
 
 testGetBrandVisa ()
 
 testGetName ()
 
 testGetNumberLastFour ()
 
 testGetNumberLastFourNonDigits ()
 
 testGetNumberLastFourNull ()
 
 testGetNumberMasked ()
 
 testGetNumberMaskedNonDigits ()
 
 testGetParamters ()
 
 testGetSupportedBrands ()
 
 testInitializeWithParams ()
 
 testInvalidLuhn ()
 
 testInvalidShortCard ()
 
 testIssueNumber ()
 
 testLastName ()
 
 testNumber ()
 
 testPhone ()
 
 testPhoneExtension ()
 
 testPostcode ()
 
 testSetName ()
 
 testSetNameWithMultipleNames ()
 
 testSetNameWithOneName ()
 
 testSetNumberStripsNonDigits ()
 
 testShippingAddress1 ()
 
 testShippingAddress2 ()
 
 testShippingCity ()
 
 testShippingCompany ()
 
 testShippingCountry ()
 
 testShippingFax ()
 
 testShippingFirstName ()
 
 testShippingLastName ()
 
 testShippingName ()
 
 testShippingPhone ()
 
 testShippingPhoneExtension ()
 
 testShippingPostcode ()
 
 testShippingState ()
 
 testShippingTitle ()
 
 testShouldReturnTrack1 ()
 
 testShouldReturnTrack2 ()
 
 testStartDate ()
 
 testStartMonth ()
 
 testStartMonthLeadingZeros ()
 
 testStartYear ()
 
 testStartYearTwoDigits ()
 
 testState ()
 
 testTitle ()
 
 testTracks ()
 
 testValidateExpiryDate ()
 
 testValidateExpiryMonthRequired ()
 
 testValidateExpiryYearRequired ()
 
 testValidateFixture ()
 
 testValidateNumber ()
 
 testValidateNumberRequired ()
 

Detailed Description

Definition at line 7 of file CreditCardTest.php.

Member Function Documentation

◆ setUp()

Omnipay\Common\CreditCardTest::setUp ( )

Definition at line 15 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\setNumber().

◆ testAddress1()

Omnipay\Common\CreditCardTest::testAddress1 ( )

Definition at line 569 of file CreditCardTest.php.

◆ testAddress2()

Omnipay\Common\CreditCardTest::testAddress2 ( )

Definition at line 577 of file CreditCardTest.php.

◆ testBillingAddress1()

Omnipay\Common\CreditCardTest::testBillingAddress1 ( )

Definition at line 409 of file CreditCardTest.php.

◆ testBillingAddress2()

Omnipay\Common\CreditCardTest::testBillingAddress2 ( )

Definition at line 416 of file CreditCardTest.php.

◆ testBillingCity()

Omnipay\Common\CreditCardTest::testBillingCity ( )

Definition at line 423 of file CreditCardTest.php.

◆ testBillingCompany()

Omnipay\Common\CreditCardTest::testBillingCompany ( )

Definition at line 402 of file CreditCardTest.php.

◆ testBillingCountry()

Omnipay\Common\CreditCardTest::testBillingCountry ( )

Definition at line 444 of file CreditCardTest.php.

◆ testBillingFax()

Omnipay\Common\CreditCardTest::testBillingFax ( )

Definition at line 465 of file CreditCardTest.php.

◆ testBillingFirstName()

Omnipay\Common\CreditCardTest::testBillingFirstName ( )

Definition at line 377 of file CreditCardTest.php.

◆ testBillingLastName()

Omnipay\Common\CreditCardTest::testBillingLastName ( )

Definition at line 384 of file CreditCardTest.php.

◆ testBillingName()

Omnipay\Common\CreditCardTest::testBillingName ( )

Definition at line 391 of file CreditCardTest.php.

◆ testBillingPhone()

Omnipay\Common\CreditCardTest::testBillingPhone ( )

Definition at line 451 of file CreditCardTest.php.

◆ testBillingPhoneExtension()

Omnipay\Common\CreditCardTest::testBillingPhoneExtension ( )

Definition at line 458 of file CreditCardTest.php.

◆ testBillingPostcode()

Omnipay\Common\CreditCardTest::testBillingPostcode ( )

Definition at line 430 of file CreditCardTest.php.

◆ testBillingState()

Omnipay\Common\CreditCardTest::testBillingState ( )

Definition at line 437 of file CreditCardTest.php.

◆ testBillingTitle()

Omnipay\Common\CreditCardTest::testBillingTitle ( )

Definition at line 370 of file CreditCardTest.php.

◆ testBirthday()

Omnipay\Common\CreditCardTest::testBirthday ( )

Definition at line 647 of file CreditCardTest.php.

◆ testBirthdayEmpty()

Omnipay\Common\CreditCardTest::testBirthdayEmpty ( )

Definition at line 654 of file CreditCardTest.php.

◆ testCity()

Omnipay\Common\CreditCardTest::testCity ( )

Definition at line 585 of file CreditCardTest.php.

◆ testCompany()

Omnipay\Common\CreditCardTest::testCompany ( )

Definition at line 561 of file CreditCardTest.php.

◆ testConstructWithParams()

Omnipay\Common\CreditCardTest::testConstructWithParams ( )

Definition at line 26 of file CreditCardTest.php.

◆ testCountry()

Omnipay\Common\CreditCardTest::testCountry ( )

Definition at line 609 of file CreditCardTest.php.

◆ testCustomBrandAddedTwiceReturnsFalse()

Omnipay\Common\CreditCardTest::testCustomBrandAddedTwiceReturnsFalse ( )

Definition at line 133 of file CreditCardTest.php.

◆ testCustomBrandWorks()

Omnipay\Common\CreditCardTest::testCustomBrandWorks ( )

Definition at line 124 of file CreditCardTest.php.

◆ testCustomSupportedBrand()

Omnipay\Common\CreditCardTest::testCustomSupportedBrand ( )

Definition at line 118 of file CreditCardTest.php.

◆ testCvv()

Omnipay\Common\CreditCardTest::testCvv ( )

Definition at line 338 of file CreditCardTest.php.

◆ testEmail()

Omnipay\Common\CreditCardTest::testEmail ( )

Definition at line 641 of file CreditCardTest.php.

◆ testExpiryDate()

Omnipay\Common\CreditCardTest::testExpiryDate ( )

Definition at line 300 of file CreditCardTest.php.

◆ testExpiryMonth()

Omnipay\Common\CreditCardTest::testExpiryMonth ( )

Definition at line 276 of file CreditCardTest.php.

◆ testExpiryMonthLeadingZeros()

Omnipay\Common\CreditCardTest::testExpiryMonthLeadingZeros ( )

Definition at line 282 of file CreditCardTest.php.

◆ testExpiryYear()

Omnipay\Common\CreditCardTest::testExpiryYear ( )

Definition at line 288 of file CreditCardTest.php.

◆ testExpiryYearTwoDigits()

Omnipay\Common\CreditCardTest::testExpiryYearTwoDigits ( )

Definition at line 294 of file CreditCardTest.php.

◆ testFax()

Omnipay\Common\CreditCardTest::testFax ( )

Definition at line 633 of file CreditCardTest.php.

◆ testFirstName()

Omnipay\Common\CreditCardTest::testFirstName ( )

Definition at line 146 of file CreditCardTest.php.

◆ testGender()

Omnipay\Common\CreditCardTest::testGender ( )

Definition at line 660 of file CreditCardTest.php.

◆ testGetBrandAmex()

Omnipay\Common\CreditCardTest::testGetBrandAmex ( )

Definition at line 252 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_AMEX.

◆ testGetBrandDefault()

Omnipay\Common\CreditCardTest::testGetBrandDefault ( )

Definition at line 230 of file CreditCardTest.php.

◆ testGetBrandDinersClub()

Omnipay\Common\CreditCardTest::testGetBrandDinersClub ( )

Definition at line 264 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_DINERS_CLUB.

◆ testGetBrandDiscover()

Omnipay\Common\CreditCardTest::testGetBrandDiscover ( )

Definition at line 258 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_DISCOVER.

◆ testGetBrandJcb()

Omnipay\Common\CreditCardTest::testGetBrandJcb ( )

Definition at line 270 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_JCB.

◆ testGetBrandMasterCard()

Omnipay\Common\CreditCardTest::testGetBrandMasterCard ( )

Definition at line 242 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_MASTERCARD.

◆ testGetBrandVisa()

Omnipay\Common\CreditCardTest::testGetBrandVisa ( )

Definition at line 236 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_VISA.

◆ testGetName()

Omnipay\Common\CreditCardTest::testGetName ( )

Definition at line 158 of file CreditCardTest.php.

◆ testGetNumberLastFour()

Omnipay\Common\CreditCardTest::testGetNumberLastFour ( )

Definition at line 204 of file CreditCardTest.php.

◆ testGetNumberLastFourNonDigits()

Omnipay\Common\CreditCardTest::testGetNumberLastFourNonDigits ( )

Definition at line 210 of file CreditCardTest.php.

◆ testGetNumberLastFourNull()

Omnipay\Common\CreditCardTest::testGetNumberLastFourNull ( )

Definition at line 198 of file CreditCardTest.php.

◆ testGetNumberMasked()

Omnipay\Common\CreditCardTest::testGetNumberMasked ( )

Definition at line 216 of file CreditCardTest.php.

◆ testGetNumberMaskedNonDigits()

Omnipay\Common\CreditCardTest::testGetNumberMaskedNonDigits ( )

Definition at line 223 of file CreditCardTest.php.

◆ testGetParamters()

Omnipay\Common\CreditCardTest::testGetParamters ( )

Definition at line 39 of file CreditCardTest.php.

◆ testGetSupportedBrands()

Omnipay\Common\CreditCardTest::testGetSupportedBrands ( )

Definition at line 111 of file CreditCardTest.php.

References Omnipay\Common\CreditCard\BRAND_VISA.

◆ testInitializeWithParams()

Omnipay\Common\CreditCardTest::testInitializeWithParams ( )

Definition at line 32 of file CreditCardTest.php.

◆ testInvalidLuhn()

Omnipay\Common\CreditCardTest::testInvalidLuhn ( )

@expectedException Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage Card number is invalid

Definition at line 670 of file CreditCardTest.php.

◆ testInvalidShortCard()

Omnipay\Common\CreditCardTest::testInvalidShortCard ( )

@expectedException Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage Card number should have 12 to 19 digits

Definition at line 680 of file CreditCardTest.php.

◆ testIssueNumber()

Omnipay\Common\CreditCardTest::testIssueNumber ( )

Definition at line 364 of file CreditCardTest.php.

◆ testLastName()

Omnipay\Common\CreditCardTest::testLastName ( )

Definition at line 152 of file CreditCardTest.php.

◆ testNumber()

Omnipay\Common\CreditCardTest::testNumber ( )

Definition at line 186 of file CreditCardTest.php.

◆ testPhone()

Omnipay\Common\CreditCardTest::testPhone ( )

Definition at line 617 of file CreditCardTest.php.

◆ testPhoneExtension()

Omnipay\Common\CreditCardTest::testPhoneExtension ( )

Definition at line 625 of file CreditCardTest.php.

◆ testPostcode()

Omnipay\Common\CreditCardTest::testPostcode ( )

Definition at line 593 of file CreditCardTest.php.

◆ testSetName()

Omnipay\Common\CreditCardTest::testSetName ( )

Definition at line 165 of file CreditCardTest.php.

◆ testSetNameWithMultipleNames()

Omnipay\Common\CreditCardTest::testSetNameWithMultipleNames ( )

Definition at line 179 of file CreditCardTest.php.

◆ testSetNameWithOneName()

Omnipay\Common\CreditCardTest::testSetNameWithOneName ( )

Definition at line 172 of file CreditCardTest.php.

◆ testSetNumberStripsNonDigits()

Omnipay\Common\CreditCardTest::testSetNumberStripsNonDigits ( )

Definition at line 192 of file CreditCardTest.php.

◆ testShippingAddress1()

Omnipay\Common\CreditCardTest::testShippingAddress1 ( )

Definition at line 507 of file CreditCardTest.php.

◆ testShippingAddress2()

Omnipay\Common\CreditCardTest::testShippingAddress2 ( )

Definition at line 513 of file CreditCardTest.php.

◆ testShippingCity()

Omnipay\Common\CreditCardTest::testShippingCity ( )

Definition at line 519 of file CreditCardTest.php.

◆ testShippingCompany()

Omnipay\Common\CreditCardTest::testShippingCompany ( )

Definition at line 501 of file CreditCardTest.php.

◆ testShippingCountry()

Omnipay\Common\CreditCardTest::testShippingCountry ( )

Definition at line 537 of file CreditCardTest.php.

◆ testShippingFax()

Omnipay\Common\CreditCardTest::testShippingFax ( )

Definition at line 555 of file CreditCardTest.php.

◆ testShippingFirstName()

Omnipay\Common\CreditCardTest::testShippingFirstName ( )

Definition at line 478 of file CreditCardTest.php.

◆ testShippingLastName()

Omnipay\Common\CreditCardTest::testShippingLastName ( )

Definition at line 484 of file CreditCardTest.php.

◆ testShippingName()

Omnipay\Common\CreditCardTest::testShippingName ( )

Definition at line 490 of file CreditCardTest.php.

◆ testShippingPhone()

Omnipay\Common\CreditCardTest::testShippingPhone ( )

Definition at line 543 of file CreditCardTest.php.

◆ testShippingPhoneExtension()

Omnipay\Common\CreditCardTest::testShippingPhoneExtension ( )

Definition at line 549 of file CreditCardTest.php.

◆ testShippingPostcode()

Omnipay\Common\CreditCardTest::testShippingPostcode ( )

Definition at line 525 of file CreditCardTest.php.

◆ testShippingState()

Omnipay\Common\CreditCardTest::testShippingState ( )

Definition at line 531 of file CreditCardTest.php.

◆ testShippingTitle()

Omnipay\Common\CreditCardTest::testShippingTitle ( )

Definition at line 472 of file CreditCardTest.php.

◆ testShouldReturnTrack1()

Omnipay\Common\CreditCardTest::testShouldReturnTrack1 ( )

Definition at line 350 of file CreditCardTest.php.

◆ testShouldReturnTrack2()

Omnipay\Common\CreditCardTest::testShouldReturnTrack2 ( )

Definition at line 357 of file CreditCardTest.php.

◆ testStartDate()

Omnipay\Common\CreditCardTest::testStartDate ( )

Definition at line 331 of file CreditCardTest.php.

◆ testStartMonth()

Omnipay\Common\CreditCardTest::testStartMonth ( )

Definition at line 307 of file CreditCardTest.php.

◆ testStartMonthLeadingZeros()

Omnipay\Common\CreditCardTest::testStartMonthLeadingZeros ( )

Definition at line 313 of file CreditCardTest.php.

◆ testStartYear()

Omnipay\Common\CreditCardTest::testStartYear ( )

Definition at line 319 of file CreditCardTest.php.

◆ testStartYearTwoDigits()

Omnipay\Common\CreditCardTest::testStartYearTwoDigits ( )

Definition at line 325 of file CreditCardTest.php.

◆ testState()

Omnipay\Common\CreditCardTest::testState ( )

Definition at line 601 of file CreditCardTest.php.

◆ testTitle()

Omnipay\Common\CreditCardTest::testTitle ( )

Definition at line 140 of file CreditCardTest.php.

◆ testTracks()

Omnipay\Common\CreditCardTest::testTracks ( )

Definition at line 344 of file CreditCardTest.php.

◆ testValidateExpiryDate()

Omnipay\Common\CreditCardTest::testValidateExpiryDate ( )

@expectedException \Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage Card has expired

Definition at line 95 of file CreditCardTest.php.

◆ testValidateExpiryMonthRequired()

Omnipay\Common\CreditCardTest::testValidateExpiryMonthRequired ( )

@expectedException \Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage The expiryMonth parameter is required

Definition at line 75 of file CreditCardTest.php.

◆ testValidateExpiryYearRequired()

Omnipay\Common\CreditCardTest::testValidateExpiryYearRequired ( )

@expectedException \Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage The expiryYear parameter is required

Definition at line 85 of file CreditCardTest.php.

◆ testValidateFixture()

Omnipay\Common\CreditCardTest::testValidateFixture ( )

Definition at line 56 of file CreditCardTest.php.

◆ testValidateNumber()

Omnipay\Common\CreditCardTest::testValidateNumber ( )

@expectedException \Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage Card number is invalid

Definition at line 105 of file CreditCardTest.php.

◆ testValidateNumberRequired()

Omnipay\Common\CreditCardTest::testValidateNumberRequired ( )

@expectedException \Omnipay\Common\Exception\InvalidCreditCardException @expectedExceptionMessage The number parameter is required

Definition at line 65 of file CreditCardTest.php.


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