/** * @expectedException InvalidArgumentException */ public function testInvalidByYearDay() { $test = new When(); $test->byyearday(367); }