public function returnsErrorsOnIncorrectValues()
{
$sampleInvalidTime = 'this is not a time string';
$this->mockDatetimeParser->expects($this->once())->method('parseTime', $sampleInvalidTime)->will($this->returnValue(false));
$this->validatorOptions(['locale' => 'en_GB', 'formatLength' => I18n\Cldr\Reader\DatesReader::FORMAT_LENGTH_DEFAULT, 'formatType' => I18n\Cldr\Reader\DatesReader::FORMAT_TYPE_TIME]);
$this->inject($this->validator, 'datetimeParser', $this->mockDatetimeParser);
$this->assertTrue($this->validator->validate($sampleInvalidTime)->hasErrors());
}