/** * @return static */ public static function now() { return new static(Year::now(), Month::now(), Day::now()); }
public function testNow() { $this->assertSame((int) date('Y'), Year::now()->getValue()); $this->assertNotSame(1999, Year::now()->getValue()); }