public function ChoiceValidatorTest::testNullIsValid in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Constraints/ChoiceValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\ChoiceValidatorTest::testNullIsValid()
File
- vendor/
symfony/ validator/ Tests/ Constraints/ ChoiceValidatorTest.php, line 53
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testNullIsValid() {
$this->validator
->validate(null, new Choice(array(
'choices' => array(
'foo',
'bar',
),
)));
$this
->assertNoViolation();
}