1, 'name' => 'Calendar', 'principaluri' => 'principals/user1', 'uri' => 'calendar1', ], ]; protected $caldavCalendarObjects = [ 1 => [ 'event.ics' => [ 'calendardata' => 'BEGIN:VCALENDAR VERSION:2.0 BEGIN:VEVENT CREATED:20120313T142342Z UID:171EBEFC-C951-499D-B234-7BA7D677B45D DTEND;TZID=Europe/Berlin:20120227T010000 TRANSP:OPAQUE SUMMARY:Monday 0h DTSTART;TZID=Europe/Berlin:20120227T000000 DTSTAMP:20120313T142416Z SEQUENCE:4 END:VEVENT END:VCALENDAR ', ], ], ]; public function testQueryTimerange() { $request = new HTTP\Request( 'REPORT', '/calendars/user1/calendar1', [ 'Content-Type' => 'application/xml', 'Depth' => '1', ] ); $request->setBody(' '); $response = $this->request($request); $this->assertTrue(false !== strpos($response->body, 'BEGIN:VCALENDAR')); } }