/** * TimeLibTest::testDaysInMonth() * * @return void */ public function testDaysInMonth() { $this->out($this->_header(__FUNCTION__), true); $ret = TimeLib::daysInMonth('2004', '3'); $this->assertEquals(31, $ret); $ret = TimeLib::daysInMonth('2006', '4'); $this->assertEquals(30, $ret); $ret = TimeLib::daysInMonth('2007', '2'); $this->assertEquals(28, $ret); $ret = TimeLib::daysInMonth('2008', '2'); $this->assertEquals(29, $ret); }