You are here

public function TimeValidatorTest::getInvalidTimes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Tests/Constraints/TimeValidatorTest.php \Symfony\Component\Validator\Tests\Constraints\TimeValidatorTest::getInvalidTimes()

File

vendor/symfony/validator/Tests/Constraints/TimeValidatorTest.php, line 95

Class

TimeValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function getInvalidTimes() {
  return array(
    array(
      'foobar',
      Time::INVALID_FORMAT_ERROR,
    ),
    array(
      'foobar 12:34:56',
      Time::INVALID_FORMAT_ERROR,
    ),
    array(
      '12:34:56 foobar',
      Time::INVALID_FORMAT_ERROR,
    ),
    array(
      '00:00',
      Time::INVALID_FORMAT_ERROR,
    ),
    array(
      '24:00:00',
      Time::INVALID_TIME_ERROR,
    ),
    array(
      '00:60:00',
      Time::INVALID_TIME_ERROR,
    ),
    array(
      '00:00:60',
      Time::INVALID_TIME_ERROR,
    ),
  );
}