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