public function NotBlankValidatorTest::testNullIsInvalid in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/Constraints/NotBlankValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\NotBlankValidatorTest::testNullIsInvalid()
File
- vendor/
symfony/ validator/ Tests/ Constraints/ NotBlankValidatorTest.php, line 51
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testNullIsInvalid() {
$constraint = new NotBlank(array(
'message' => 'myMessage',
));
$this->validator
->validate(null, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', 'null')
->assertRaised();
}