namespace Symfony\Component\Validator\Tests\Constraints;
use Symfony\Component\Validator\Constraints\Luhn;
use Symfony\Component\Validator\Constraints\LuhnValidator;
use Symfony\Component\Validator\Exception\UnexpectedValueException;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
class LuhnValidatorTest extends ConstraintValidatorTestCase
{ protected function createValidator(): LuhnValidator
{ return new LuhnValidator();
} public function testNullIsValid() { $this->validator->
validate(null,
new Luhn());
$this->
assertNoViolation();
} public function testEmptyStringIsValid() {