public function byhour($hours, $delimiter = ",")
{
if ($this->byhours = self::prepareItemsList($hours, $delimiter, 'hour')) {
return $this;
}
throw new \InvalidArgumentException("byhour: Accepts numeric values between 0 and 23");
}
/** * @expectedException InvalidArgumentException */ public function testInvalidByHourTwo() { $test = new When(); $test->byhour('-1, -2'); }