public function RangeValidatorTest::testNullIsValid

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/RangeValidatorTest.php, line 29

Class

RangeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate(null, new Range(array(
    'min' => 10,
    'max' => 20,
  )));
}