public function testEndMonthDate() { $end_month = $this->event->endMonthDate(new \DateTime('2016-01-01 12:13')); $this->assertEquals($end_month->format('Y-m-d H:i'), '2016-01-31 23:59'); }