/** * Returns current Time * * @return self */ public static function now() { $time = new static(Hour::now(), Minute::now(), Second::now()); return $time; }
public function testNow() { $hour = Hour::now(); $this->assertEquals(date('G'), $hour->toNative()); }