You are here

public function LuhnValidatorTest::testNullIsValid in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/LuhnValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\LuhnValidatorTest::testNullIsValid()

File

vendor/symfony/validator/Tests/Constraints/LuhnValidatorTest.php, line 30

Class

LuhnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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