/** * @test */ public function shouldFormatTimestamp() { //given $timestamp = '1417083911'; //when $date = Date::formatTimestamp($timestamp); //then $this->assertEquals('2014-11-27 10:25', $date); }