You are here

public function CardSchemeValidatorTest::testValidNumbers in Plug 7

@dataProvider getValidNumbers

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CardSchemeValidatorTest.php, line 47

Class

CardSchemeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidNumbers($scheme, $number) {
  $this->validator
    ->validate($number, new CardScheme(array(
    'schemes' => $scheme,
  )));
  $this
    ->assertNoViolation();
}