You are here

public function IsFalseValidatorTest::testTrueIsInvalid in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/IsFalseValidatorTest.php, line 44

Class

IsFalseValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testTrueIsInvalid() {
  $constraint = new IsFalse(array(
    'message' => 'myMessage',
  ));
  $this->validator
    ->validate(true, $constraint);
  $this
    ->buildViolation('myMessage')
    ->setParameter('{{ value }}', 'true')
    ->assertRaised();
}