예제 #1
0
 public function testToString()
 {
     $this->assertSame('1987', (string) Year::of(1987));
 }
예제 #2
0
 /**
  * Returns whether the year is a leap year.
  *
  * @return boolean
  */
 public function isLeapYear()
 {
     return Year::of($this->year)->isLeap();
 }