26 'principaluri' =>
'principals/user1',
34 'calendardata' =>
'BEGIN:VCALENDAR 38 DTEND;TZID=Europe/Berlin:20120207T191500 39 RRULE:FREQ=DAILY;INTERVAL=1;COUNT=3 40 SUMMARY:RecurringEvents 3 times 41 DTSTART;TZID=Europe/Berlin:20120207T181500 44 CREATED:20120207T111900Z 46 DTEND;TZID=Europe/Berlin:20120208T191500 47 SUMMARY:RecurringEvents 3 times OVERWRITTEN 48 DTSTART;TZID=Europe/Berlin:20120208T181500 49 RECURRENCE-ID;TZID=Europe/Berlin:20120208T181500 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"/> 81 </C:calendar-query>');
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
This class may be used as a basis for other webdav-related unittests.
This unittests is created to find out why certain events show up twice.
static read($data, $options=0, $charset='UTF-8')
Parses a vCard or iCalendar object, and returns the top component.
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.