Clock::freeze('2011-01-02 12:34'); $result = Clock::nowAsString('Y-m-d');
2011-01-02
public static function nowAsString($format = null) { return self::now()->format($format); }
/** * @test */ public function shouldModifyCurrentDate() { //when $date = Date::modifyNow('2 days'); //then $this->assertGreaterThan(Clock::nowAsString(), $date); }