public function testGetMonthDiff() { $from = new Tinebase_DateTime('1979-06-05 00:00:00'); $until = new Tinebase_DateTime('1980-06-05 00:00:00'); $this->assertEquals(12, Calendar_Model_Rrule::getMonthDiff($from, $until)); $until = new Tinebase_DateTime('1982-07-05 00:00:00'); $this->assertEquals(37, Calendar_Model_Rrule::getMonthDiff($from, $until)); }