/** * @return bool */ public function isLeap() { return $this->year->isLeap(); }
public function testFromNative() { $this->assertEquals(2015, Year::fromNative(new \Datetime('2015-01-23'))->getValue()); }