You are here

public function AllValidatorTest::testNullIsValid in Plug 7

File

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