You are here

public function NotBlankValidatorTest::testFalseIsInvalid in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/NotBlankValidatorTest.php, line 77

Class

NotBlankValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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