public function LuhnValidatorTest::getInvalidNumbers in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ LuhnValidatorTest.php, line 95
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function getInvalidNumbers() {
return array(
array(
'1234567812345678',
Luhn::CHECKSUM_FAILED_ERROR,
),
array(
'4222222222222222',
Luhn::CHECKSUM_FAILED_ERROR,
),
array(
'0000000000000000',
Luhn::CHECKSUM_FAILED_ERROR,
),
array(
'000000!000000000',
Luhn::INVALID_CHARACTERS_ERROR,
),
array(
'42-22222222222222',
Luhn::INVALID_CHARACTERS_ERROR,
),
);
}