$date = '2013-09-09 13:03:43'; $end = Date::endOfDay($date);
2013-09-09 23:59:59.9999
/** * @test */ public function shouldGetEndOfDayForDateWithTime() { //given $date = '2013-09-09 13:03:43'; //when $end = Date::endOfDay($date); //then $this->assertEquals('2013-09-09 23:59:59.9999', $end); }