23 'principaluri' =>
'principals/user1',
31 'calendardata' =>
'BEGIN:VCALENDAR 34 UID:20120330T155305CEST-6585fBUVgV 35 DTSTAMP:20120330T135305Z 36 DTSTART;TZID=Europe/Berlin:20120326T155200 37 DTEND;TZID=Europe/Berlin:20120326T165200 38 SUMMARY:original summary 42 ATTACH;VALUE=URI:Basso 55 'REQUEST_METHOD' =>
'REPORT',
56 'HTTP_CONTENT_TYPE' =>
'application/xml',
57 'REQUEST_URI' =>
'/calendars/user1/calendar1',
61 $request->setBody(
'<?xml version="1.0" encoding="utf-8" ?> 62 <C:calendar-query xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:caldav"> 65 <C:expand start="20120325T220000Z" end="20120401T215959Z"/> 70 <C:comp-filter name="VCALENDAR"> 71 <C:comp-filter name="VEVENT"> 72 <C:comp-filter name="VALARM"> 73 <C:time-range start="20120325T220000Z" end="20120401T215959Z"/> 78 </C:calendar-query>');
82 $this->assertFalse(strpos(
$response->body,
'<s:exception>Exception</s:exception>'),
'Exception occurred: ' .
$response->body);
83 $this->assertFalse(strpos(
$response->body,
'Unknown or bad format'),
'DateTime unknown format Exception: ' .
$response->body);
91 $body = str_replace(
' ',
'', $body);
95 $this->assertEquals(1, count($vObject->VEVENT));
foreach($paths as $path) $request
This unittest is created to check if a VALARM TRIGGER of PT0S is supported.
This class may be used as a basis for other webdav-related unittests.
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.