/** * @test */ public function shouldFormatTime() { //given $date = '2013-09-09 13:03:43'; //when $timeOnly = Date::formatTime($date); //then $this->assertEquals('13:03', $timeOnly); }