26 'principaluri' =>
'principals/user1',
34 'calendardata' =>
'BEGIN:VCALENDAR
38DTEND;TZID=Europe/Berlin:20120207T191500
39RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3
40SUMMARY:RecurringEvents 3 times
41DTSTART;TZID=Europe/Berlin:20120207T181500
44CREATED:20120207T111900Z
46DTEND;TZID=Europe/Berlin:20120208T191500
47SUMMARY:RecurringEvents 3 times OVERWRITTEN
48DTSTART;TZID=Europe/Berlin:20120208T181500
49RECURRENCE-ID;TZID=Europe/Berlin:20120208T181500
57 function testExpand() {
60 'REQUEST_METHOD' =>
'REPORT',
61 'HTTP_CONTENT_TYPE' =>
'application/xml',
62 'REQUEST_URI' =>
'/calendars/user1/calendar1',
66 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?>
67<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
70 <C:expand start="20120205T230000Z" end="20120212T225959Z"/>
75 <C:comp-filter name="VCALENDAR">
76 <C:comp-filter name="VEVENT">
77 <C:time-range start="20120205T230000Z" end="20120212T225959Z"/>
91 $body = str_replace(
' ',
'', $body);
96 $this->assertEquals(3, count($vObject->VEVENT),
'We got 6 events instead of 3. Output: ' . $body);
99 $this->assertFalse(isset($vObject->VEVENT->DTSTART[
'TZID']));
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This unittests is created to find out why certain events show up twice.
This class may be used as a basis for other webdav-related unittests.
request($request, $expectedStatus=null)
Makes a request, and returns a response object.
static createFromServerArray(array $serverArray)
This static method will create a new Request object, based on a PHP $_SERVER array.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.