public function ExpressionValidatorTest::testExpressionIsEvaluatedWithNullValue in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ ExpressionValidatorTest.php, line 32
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testExpressionIsEvaluatedWithNullValue() {
$constraint = new Expression(array(
'expression' => 'false',
'message' => 'myMessage',
));
$this->validator
->validate(null, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', 'null')
->assertRaised();
}