assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal); $it = new Recur\EventIterator($vcal, '1aef0b27-3d92-4581-829a-11999dd36724'); $result = []; foreach ($it as $instance) { $result[] = $instance; } $tz = new DateTimeZone('Europe/Brussels'); $this->assertEquals([ new DateTimeImmutable('2013-07-15 09:00:00', $tz), new DateTimeImmutable('2013-07-16 07:00:00', $tz), new DateTimeImmutable('2013-07-17 07:00:00', $tz), new DateTimeImmutable('2013-07-18 09:00:00', $tz), new DateTimeImmutable('2013-07-19 07:00:00', $tz), ], $result); } }