public function testAddDaysToDateTimeChangesCurrentMonth() { $date = new DateTime('2014-01-31'); $date->addDay(); $this->assertEquals(new DateTime('2014-02-01'), $date); }