You are here

public function IsbnValidatorTest::testNullIsValid in Plug 7

File

lib/Symfony/validator/Symfony/Component/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();
}