22 'principaluri' =>
'principals/user1',
30 'calendardata' =>
'BEGIN:VCALENDAR
33DTSTART;TZID=Europe/Berlin:20120601T180000
35RRULE:FREQ=DAILY;INTERVAL=1;WKST=MO
38LAST-MODIFIED:20120601T064634Z
39CREATED:20120601T064634Z
40DTSTAMP:20120601T064634Z
41UID:b64f14c5-dccc-4eda-947f-bdb1f763fbcd
43TRIGGER;VALUE=DURATION:-PT5M
45DESCRIPTION:Default Event Notification
46X-WR-ALARMUID:cd952c1b-b3d6-41fb-b0a6-ec3a1a5bdd58
50DTSTART;TZID=Europe/Berlin:20120606T180000
54DTEND;TZID=Europe/Berlin:20120606T182000
55LAST-MODIFIED:20120605T094310Z
57RECURRENCE-ID:20120606T160000Z
58UID:b64f14c5-dccc-4eda-947f-bdb1f763fbcd
66 function testIssue220() {
69 'REQUEST_METHOD' =>
'REPORT',
70 'HTTP_CONTENT_TYPE' =>
'application/xml',
71 'REQUEST_URI' =>
'/calendars/user1/calendar1',
75 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?>
76<C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav">
82 <C:comp-filter name="VCALENDAR">
83 <C:comp-filter name="VEVENT">
84 <C:comp-filter name="VALARM">
85 <C:time-range start="20120607T161646Z" end="20120612T161646Z"/>
94 $this->assertFalse(strpos(
$response->body,
'<s:exception>PHPUnit_Framework_Error_Warning</s:exception>'),
'Error Warning occurred: ' .
$response->body);
95 $this->assertFalse(strpos(
$response->body,
'Invalid argument supplied for foreach()'),
'Invalid argument supplied for foreach(): ' .
$response->body);
97 $this->assertEquals(207,
$response->status);
foreach($paths as $path) $request
An exception for terminatinating execution or to throw for unit testing.
This unittest is created to check for an endless loop in CalendarQueryValidator.
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.