You are here

public function AllValidatorTest::testNullIsValid in Zircon Profile 8.0

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

File

vendor/symfony/validator/Tests/Constraints/AllValidatorTest.php, line 32

Class

AllValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->validator
    ->validate(null, new All(new Range(array(
    'min' => 4,
  ))));
  $this
    ->assertNoViolation();
}