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