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