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