public function LuhnValidatorTest::testInvalidNumbers

@dataProvider getInvalidNumbers

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/LuhnValidatorTest.php, line 89

Class

LuhnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidNumbers($number) {
  $constraint = new Luhn();
  $this->context
    ->expects($this
    ->once())
    ->method('addViolation')
    ->with($constraint->message);
  $this->validator
    ->validate($number, $constraint);
}