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