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