public function BlankValidatorTest::testInvalidValues in Plug 7
@dataProvider getInvalidValues
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ BlankValidatorTest.php, line 47
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidValues($value, $valueAsString) {
$constraint = new Blank(array(
'message' => 'myMessage',
));
$this->validator
->validate($value, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', $valueAsString)
->assertRaised();
}