You are here

public function TimeValidatorTest::getInvalidTimes in Plug 7

File

lib/Symfony/validator/Symfony/Component/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,
    ),
  );
}