@dataProvider getInvalidTimes
public function testInvalidTimes($time) {
$constraint = new Time(array(
'message' => 'myMessage',
));
$this->context
->expects($this
->once())
->method('addViolation')
->with('myMessage', array(
'{{ value }}' => $time,
));
$this->validator
->validate($time, $constraint);
}