@@ -47,7 +47,7 @@ protected function tearDown()
4747 public function testCreateCard ()
4848 {
4949 $ cardNumber = self ::VISA_1 ;
50- $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 );
50+ $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 , 123 );
5151 $ response = $ this ->cards ->createCard ($ this ->customerId , $ request );
5252
5353 $ this ->assertInstanceOf ('Stripe\Response\Cards\CardResponse ' , $ response );
@@ -56,7 +56,7 @@ public function testCreateCard()
5656 // test error handling
5757
5858 $ cardNumber = self ::INCORRECT_NUMBER ;
59- $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 );
59+ $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 , 123 );
6060 $ exceptionThrown = false ;
6161 try {
6262 $ this ->cards ->createCard ($ this ->customerId , $ request );
@@ -66,7 +66,7 @@ public function testCreateCard()
6666 $ this ->assertTrue ($ exceptionThrown );
6767
6868 $ cardNumber = self ::CARD_DECLINED ;
69- $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 );
69+ $ request = new CreateCardRequest ($ cardNumber , 1 , 2020 , 123 );
7070 $ exceptionThrown = false ;
7171 try {
7272 $ this ->cards ->createCard ($ this ->customerId , $ request );
@@ -76,7 +76,7 @@ public function testCreateCard()
7676 $ this ->assertTrue ($ exceptionThrown );
7777
7878 $ cardNumber = self ::VISA_1 ;
79- $ request = new CreateCardRequest ($ cardNumber , 13 , 2020 );
79+ $ request = new CreateCardRequest ($ cardNumber , 13 , 2020 , 123 );
8080 $ exceptionThrown = false ;
8181 try {
8282 $ this ->cards ->createCard ($ this ->customerId , $ request );
@@ -85,7 +85,7 @@ public function testCreateCard()
8585 }
8686 $ this ->assertTrue ($ exceptionThrown );
8787
88- $ request = new CreateCardRequest ($ cardNumber , 12 , 1984 );
88+ $ request = new CreateCardRequest ($ cardNumber , 12 , 1984 , 123 );
8989 $ exceptionThrown = false ;
9090 try {
9191 $ this ->cards ->createCard ($ this ->customerId , $ request );
@@ -107,7 +107,7 @@ public function testCreateCard()
107107
108108 public function testUpdateCard ()
109109 {
110- $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 ));
110+ $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 , 123 ));
111111 $ request = new UpdateCardRequest ();
112112 $ request ->setExpYear (2021 );
113113 $ updateResponse = $ this ->cards ->updateCard ($ this ->customerId , $ createResponse ->getId (), $ request );
@@ -118,7 +118,7 @@ public function testUpdateCard()
118118
119119 public function testGetCard ()
120120 {
121- $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 ));
121+ $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 , 123 ));
122122 $ card = $ this ->cards ->getCard ($ this ->customerId , $ createResponse ->getId ());
123123
124124 $ this ->assertInstanceOf ('Stripe\Response\Cards\CardResponse ' , $ card );
@@ -129,8 +129,8 @@ public function testListCards()
129129 {
130130 $ request = new ListRequest ();
131131 $ request ->setLimit (1 );
132- $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 ));
133- $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::MASTERCARD_1 , 2 , 2020 ));
132+ $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 , 123 ));
133+ $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::MASTERCARD_1 , 2 , 2020 , 123 ));
134134 $ cards = $ this ->cards ->listCards ($ this ->customerId , $ request );
135135
136136 $ this ->assertInstanceOf (Cards::LIST_CARDS_RESPONSE_CLASS , $ cards );
@@ -143,7 +143,7 @@ public function testListCards()
143143
144144 public function testDeleteCard ()
145145 {
146- $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 ));
146+ $ createResponse = $ this ->cards ->createCard ($ this ->customerId , new CreateCardRequest (self ::VISA_1 , 1 , 2020 , 123 ));
147147 $ deleteResponse = $ this ->cards ->deleteCard ($ this ->customerId , $ createResponse ->getId ());
148148
149149 $ this ->assertTrue ($ deleteResponse ->getDeleted ());
0 commit comments