public function NotBlankValidatorTest::testNullIsInvalid in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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();
}