The hour is valid if it is contained in the list passed to the field's
option "hours".
public isHourWithinRange ( ) : boolean | ||
return | boolean |
public function testIsHourWithinRange_returnsFalseIfNotContained() { $field = new TimeField('name', array('hours' => array(6, 7))); $field->submit(array('hour' => '08', 'minute' => '12')); $this->assertFalse($field->isHourWithinRange()); }