You are here

public function CallbackValidatorTest::testNullIsValid in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CallbackValidatorTest.php, line 59

Class

CallbackValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testNullIsValid() {
  $this->validator
    ->validate(null, new Callback(array(
    'foo',
  )));
  $this
    ->assertNoViolation();
}