23 'principaluri' =>
'principals/user1',
31 'calendardata' =>
'BEGIN:VCALENDAR
34UID:20120330T155305CEST-6585fBUVgV
35DTSTAMP:20120330T135305Z
36DTSTART;TZID=Europe/Berlin:20120326T155200
37DTEND;TZID=Europe/Berlin:20120326T165200
38RRULE:FREQ=DAILY;COUNT=2;INTERVAL=1
39SUMMARY:original summary
43UID:20120330T155305CEST-6585fBUVgV
44DTSTAMP:20120330T135352Z
46DTSTART;TZID=Europe/Berlin:20120328T155200
47DTEND;TZID=Europe/Berlin:20120328T165200
48RECURRENCE-ID;TZID=Europe/Berlin:20120327T155200
50SUMMARY:overwritten summary
59 function testIssue203() {
62 'REQUEST_METHOD' =>
'REPORT',
63 'HTTP_CONTENT_TYPE' =>
'application/xml',
64 'REQUEST_URI' =>
'/calendars/user1/calendar1',
68 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?>
69<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
72 <C:expand start="20120325T220000Z" end="20120401T215959Z"/>
77 <C:comp-filter name="VCALENDAR">
78 <C:comp-filter name="VEVENT">
79 <C:time-range start="20120325T220000Z" end="20120401T215959Z"/>
93 $body = str_replace(
' ',
'', $body);
97 $this->assertEquals(2, count($vObject->VEVENT));
102 'DTSTART' =>
'20120326T135200Z',
103 'DTEND' =>
'20120326T145200Z',
104 'SUMMARY' =>
'original summary',
107 'DTSTART' =>
'20120328T135200Z',
108 'DTEND' =>
'20120328T145200Z',
109 'SUMMARY' =>
'overwritten summary',
110 'RECURRENCE-ID' =>
'20120327T135200Z',
115 foreach ($expectedEvents as $expectedEvent) {
119 foreach ($vObject->VEVENT as $vevent) {
121 foreach ($vevent->children() as $child) {
123 if (isset($expectedEvent[$child->name])) {
124 if ($expectedEvent[$child->name] != $child->getValue()) {
134 $this->assertTrue($matching,
'Did not find the following event in the response: ' . var_export($expectedEvent,
true));
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This unittest is created to find out why an overwritten DAILY event has wrong DTSTART,...
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.