/** * Test for LeapYear */ public function testLeapYear() { $locale = new Locale('de_AT'); $date = new Date('01.01.2006', Date::DATES, $locale); $this->assertFalse($date->isLeapYear()); unset($date); $date = new Date('01.01.2004', Date::DATES, $locale); $this->assertTrue($date->isLeapYear()); try { $result = Date::checkLeapYear('noyear'); $this->fail('exception expected'); } catch (\Zend\Date\Exception $e) { // succeed } }