public function TimeValidatorTest::testInvalidTimes in Plug 7
@dataProvider getInvalidTimes
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Constraints/ TimeValidatorTest.php, line 81
Class
Namespace
Symfony\Component\Validator\Tests\ConstraintsCode
public function testInvalidTimes($time, $code) {
$constraint = new Time(array(
'message' => 'myMessage',
));
$this->validator
->validate($time, $constraint);
$this
->buildViolation('myMessage')
->setParameter('{{ value }}', '"' . $time . '"')
->setCode($code)
->assertRaised();
}