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