/** * @depends testGetYear * @expectedException \InvalidArgumentException */ public function testAddYearInvalid() { $month = new Month(new \DateTime('1987-06-18')); $month->addYear(-1); }