Exemple #1
0
 public function testCv2Exception()
 {
     $card = new dwmsw\sagepay\Card();
     try {
         $card->setCV2(12345);
     } catch (InvalidArgumentException $e) {
         return;
     }
     $this->fail('Allowed an input that was too long');
 }