/** * @expectedException InvalidArgumentException */ public function testInvalidByHourTwo() { $test = new When(); $test->byhour('-1, -2'); }