public function IsFalseValidatorTest::testTrueIsInvalid in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ IsFalseValidatorTest.php, line 44
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testTrueIsInvalid() {
$constraint = new IsFalse(array(
'message' => 'myMessage',
));
$this->validator
->validate(true, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', 'true')
->assertRaised();
}