13 $obj =
new Component\VCalendar();
14 $obj->METHOD =
'PUBLISH';
18 $gen->setBaseObject($obj);
22 $this->assertEquals(
'PUBLISH',
$result->METHOD->getValue());
65 if (is_string($vavailability)) {
68 $gen->setVAvailability($vavailability);
74 unset(
$output->VFREEBUSY->DTSTAMP);
80 DTSTART:20110101T110000Z
81 DTEND:20110103T110000Z
87 $this->assertVObjectEqualsVObject($expected,
$output);
97 DTSTART:20110101T120000Z
98 DTEND:20110101T130000Z
105 "FREEBUSY:20110101T120000Z/20110101T130000Z",
117 DTSTART:20110101T120000Z
118 DTEND:20110101T130000Z
122 $h =
fopen(
'php://memory',
'r+');
128 "FREEBUSY:20110101T120000Z/20110101T130000Z",
144 DTSTART:20110101T130000Z
145 DTEND:20110101T140000Z
151 "FREEBUSY:20110101T130000Z/20110101T140000Z",
168 DTSTART:20110101T140000Z
169 DTEND:20110101T150000Z
192 DTSTART:20110101T160000Z
193 DTEND:20110101T170000Z
216 DTSTART:20110101T180000Z
217 DTEND:20110101T190000Z
223 'FREEBUSY;FBTYPE=BUSY-TENTATIVE:20110101T180000Z/20110101T190000Z',
239 DTSTART:20110101T090000Z
240 DTEND:20110101T100000Z
262 DTSTART:20110104T090000Z
263 DTEND:20110104T100000Z
285 DTSTART:20110101T190000Z
292 'FREEBUSY:20110101T190000Z/20110101T200000Z',
308 DTSTART;VALUE=DATE:20110102
314 'FREEBUSY:20110102T000000Z/20110103T000000Z',
330 DTSTART:20110101T200000Z
352 DTSTART:20110101T210000Z
359 'FREEBUSY:20110101T210000Z/20110101T220000Z',
375 FREEBUSY:20110103T010000Z/20110103T020000Z
376 FREEBUSY;FBTYPE=FREE:20110103T020000Z/20110103T030000Z
377 FREEBUSY:20110103T030000Z/20110103T040000Z,20110103T040000Z/20110103T050000Z
378 FREEBUSY:20120101T000000Z/20120101T010000Z
379 FREEBUSY:20110103T050000Z/PT1H
385 "FREEBUSY:20110103T010000Z/20110103T020000Z\n" .
386 'FREEBUSY:20110103T030000Z/20110103T060000Z',
399 DTSTART:20100101T220000Z
400 DTEND:20100101T230000Z
407 'FREEBUSY:20110101T220000Z/20110101T230000Z',
420 DTSTART:20100101T230000Z
428 'FREEBUSY:20110101T230000Z/20110102T000000Z',
441 DTSTART:20110101T120000
442 DTEND:20110101T130000
448 "FREEBUSY:20110101T120000Z/20110101T130000Z",
461 DTSTART:20110101T120000
462 DTEND:20110101T130000
468 "FREEBUSY:20110101T170000Z/20110101T180000Z",
482 DTSTART;VALUE=DATE:20110101
488 "FREEBUSY:20110101T110000Z/20110102T000000Z",
501 DTSTART;VALUE=DATE:20110101
507 "FREEBUSY:20110101T110000Z/20110102T050000Z",
521 DTSTART:20110101T100000Z
522 DTEND:20110103T120000Z
523 RRULE:FREQ=WEEKLY;COUNT=1
524 EXDATE:20110101T100000Z
546 DTSTART:20110101T120000Z
547 DTEND:20110101T130000Z
555 DTSTART:20110101T000000Z
556 DTEND:20120101T000000Z
558 DTSTART:20110101T000000Z
559 DTEND:20110101T010000Z
566 "FREEBUSY;FBTYPE=BUSY-UNAVAILABLE:20110101T110000Z/20110101T120000Z\n" .
567 "FREEBUSY:20110101T120000Z/20110101T130000Z\n" .
568 "FREEBUSY;FBTYPE=BUSY-UNAVAILABLE:20110101T130000Z/20110103T110000Z",
586 DTSTART:20110101T120000Z
587 DTEND:20110101T130000Z
595 DTSTART:20150101T000000Z
596 DTEND:20160101T000000Z
598 DTSTART:20150101T000000Z
599 DTEND:20150101T010000Z
606 "FREEBUSY:20110101T120000Z/20110101T130000Z",
624 DTSTART:20110101T120000Z
625 DTEND:20110101T130000Z
633 DTSTART:20100101T000000Z
634 DTEND:20120101T000000Z
635 BUSYTYPE:BUSY-TENTATIVE
637 DTSTART:20101213T090000Z
638 DTEND:20101213T170000Z
639 RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
646 "FREEBUSY;FBTYPE=BUSY-TENTATIVE:20110101T110000Z/20110101T120000Z\n" .
647 "FREEBUSY:20110101T120000Z/20110101T130000Z\n" .
648 "FREEBUSY;FBTYPE=BUSY-TENTATIVE:20110101T130000Z/20110103T090000Z\n",
666 DTSTART:20110101T120000Z
667 DTEND:20110101T130000Z
675 DTSTART:20100101T000000Z
676 DTEND:20120101T000000Z
677 BUSYTYPE:BUSY-TENTATIVE
680 DTSTART:20101213T090000Z
681 DTEND:20101213T170000Z
682 RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
687 DTSTART:20101214T000000Z
688 DTEND:20110107T000000Z
695 "FREEBUSY:20110101T110000Z/20110103T110000Z",
715 DTSTART:20110101T120000Z
716 DTEND:20110101T130000Z
724 DTSTART:20100101T000000Z
725 DTEND:20120101T000000Z
726 BUSYTYPE:BUSY-TENTATIVE
729 DTSTART:20101213T090000Z
730 DTEND:20101213T170000Z
731 RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
736 DTSTART:20101214T000000Z
737 DTEND:20110107T000000Z
744 "FREEBUSY;FBTYPE=BUSY-TENTATIVE:20110101T110000Z/20110101T120000Z\n" .
745 "FREEBUSY:20110101T120000Z/20110101T130000Z\n" .
746 "FREEBUSY;FBTYPE=BUSY-TENTATIVE:20110101T130000Z/20110103T090000Z\n",
testVFreeBusy()
Testing feeding VFREEBUSY objects instead of VEVENT.
testOutsideTimeRange2()
Testing an event that falls outside of the report time-range.
testVAvailabilityOfficeHoursVacation()
This test has the same office hours, but has a vacation blocked off for the relevant time...
This class helps with generating FREEBUSY reports based on existing sets of objects.
testOpaque()
Testing TRANSP:OPAQUE.
testTransparent()
Testing TRANSP:TRANSPARENT.
testFloatingTimeReferenceTimeZone()
testVAvailabilityIrrelevant()
This VAVAILABILITY object does not overlap at all with the freebusy report, so it should be ignored...
testGeneratorBaseObject()
assertFreeBusyReport($expected, $input, $timeZone=null, $vavailability=null)
This function takes a list of objects (icalendar objects), and turns them into a freebusy report...
testInvalidArg()
InvalidArgumentException
testTentative()
Testing STATUS:TENTATIVE.
testYearlyRecurrenceDuration()
testVAvailabilitySimple()
This VAVAILABILITY object overlaps with the time-range, but we're just busy the entire time...
testOutsideTimeRange()
Testing an event that falls outside of the report time-range.
testDuration()
Testing an event that uses DURATION.
testAllDayReferenceTimeZone()
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
testVAvailabilityOfficeHoursVacation2()
This test has the same input as the last, except somebody mixed up the PRIORITY values.
testObject()
Testing feeding the freebusy generator an object instead of a string.
testCancelled()
Testing STATUS:CANCELLED.
testNoDuration()
Testing an event that has no end or duration.
testVAvailabilityOfficeHours()
This VAVAILABILITY object has a 9am-5pm AVAILABLE object for office hours.
testAllDay()
Testing an all-day event.