assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal); $vcal = $vcal->expand(new DateTime('2015-01-01'), new DateTime('2015-01-31')); $output = <<assertVObjectEqualsVObject($output, $vcal); } function testExpandWithReferenceTimezone() { $input = <<assertInstanceOf('Sabre\\VObject\\Component\\VCalendar', $vcal); $vcal = $vcal->expand( new DateTime('2015-01-01'), new DateTime('2015-01-31'), new DateTimeZone('Europe/Berlin') ); $output = <<assertVObjectEqualsVObject($output, $vcal); } }