assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal); $vcal = $vcal->expand(new DateTime('2013-09-28'), new DateTime('2014-09-11')); foreach ($vcal->VEVENT as $event) { $dates[] = $event->DTSTART->getValue(); } $expectedDates = [ "20130929T160000Z", "20131006T160000Z", "20131013T160000Z", "20131020T160000Z", "20131027T160000Z", "20140907T160000Z" ]; $this->assertEquals($expectedDates, $dates, 'Recursed dates are restricted by month'); } }