You are here

public function IsbnValidatorTest::testNullIsValid in Zircon Profile 8

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

File

vendor/symfony/validator/Tests/Constraints/IsbnValidatorTest.php, line 126

Class

IsbnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $constraint = new Isbn(true);
  $this->validator
    ->validate(null, $constraint);
  $this
    ->assertNoViolation();
}