public function TimeValidatorTest::testInvalidTimes

@dataProvider getInvalidTimes

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/TimeValidatorTest.php, line 90

Class

TimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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);
}