You are here

public function LuhnValidatorTest::testValidNumbers in Plug 7

@dataProvider getValidNumbers

File

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

Class

LuhnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testValidNumbers($number) {
  $this->validator
    ->validate($number, new Luhn());
  $this
    ->assertNoViolation();
}