/** * Returns whether the year is a leap year. * * @return boolean */ public function isLeapYear() { return Year::of($this->year)->isLeap(); }
public function testToString() { $this->assertSame('1987', (string) Year::of(1987)); }
/** * @param integer $yearValue * @param Year $year */ protected function assertYearIs($yearValue, Year $year) { $this->compare([$yearValue], [$year->getValue()]); }