1, 'name' => 'Calendar', 'principaluri' => 'principals/user1', 'uri' => 'calendar1', ) ); protected $caldavCalendarObjects = array( 1 => array( 'event.ics' => array( 'calendardata' => 'BEGIN:VCALENDAR VERSION:2.0 BEGIN:VEVENT UID:20120730T113415CEST-6804EGphkd@xxxxxx.de DTSTAMP:20120730T093415Z DTSTART;VALUE=DATE:20120729 DTEND;VALUE=DATE:20120730 SUMMARY:sunday event TRANSP:TRANSPARENT END:VEVENT END:VCALENDAR ', ), ), ); function testIssue228() { $request = HTTP\Sapi::createFromServerArray(array( 'REQUEST_METHOD' => 'REPORT', 'HTTP_CONTENT_TYPE' => 'application/xml', 'REQUEST_URI' => '/calendars/user1/calendar1', 'HTTP_DEPTH' => '1', )); $request->setBody(' '); $response = $this->request($request); // We must check if absolutely nothing was returned from this query. $this->assertFalse(strpos($response->body, 'BEGIN:VCALENDAR')); } }