We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cda3151 commit 7c39f68Copy full SHA for 7c39f68
tests/Unit/CardCvcTest.php
@@ -17,6 +17,9 @@ public function it_check_cvc_by_credit_card()
17
$this->assertTrue($this->validator('243')->passes());
18
$this->assertTrue($this->validator('1234')->passes());
19
20
+ $this->assertTrue($this->validator('1234', new AmericanExpressTest)->passes());
21
+ $this->assertFalse($this->validator('243', new AmericanExpressTest)->passes()); // American Express supports only 4 digits
22
+
23
$this->assertTrue($this->validator('243', new VisaTest)->passes());
24
$this->assertTrue($this->validator('1234', new VisaTest)->fails()); // Visa supports only 3 digits
25
0 commit comments