You are here

public function IsbnValidatorTest::testEmptyStringIsValid 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::testEmptyStringIsValid()

File

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

Class

IsbnValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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