public function testNow() { $year = Year::now(); $this->assertEquals(date('Y'), $year->toNative()); }
/** * Returns current Date * * @return Date */ public static function now() { $date = new static(Year::now(), Month::now(), MonthDay::now()); return $date; }