public function CallbackValidatorTest::testNullIsValid

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 63

Class

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->context
    ->expects($this
    ->never())
    ->method('addViolation');
  $this->validator
    ->validate(null, new Callback(array(
    'foo',
  )));
}