public function NotNullValidatorTest::testNullIsInvalid in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ NotNullValidatorTest.php, line 50
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testNullIsInvalid() {
$constraint = new NotNull(array(
'message' => 'myMessage',
));
$this->validator
->validate(null, $constraint);
$this
->buildViolation('myMessage')
->assertRaised();
}