/** * @expectedException InvalidArgumentException */ public function testInvalidByWeekNo() { $test = new When(); $test->byweekno(55); }