This unittest is created to check for an endless loop in CalendarQueryValidator.
More...
This unittest is created to check for an endless loop in CalendarQueryValidator.
- Copyright
- Copyright (C) fruux GmbH (https://fruux.com/)
- Author
- Evert Pot (http://evertpot.com/) http://sabre.io/license/ Modified BSD License
Definition at line 14 of file Issue220Test.php.
◆ testIssue220()
Sabre\CalDAV\Issue220Test::testIssue220 |
( |
| ) |
|
Definition at line 66 of file Issue220Test.php.
References $request, $response, Sabre\HTTP\Sapi\createFromServerArray(), and Sabre\DAVServerTest\request().
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"/> 90 </C:calendar-query>');
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
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.
◆ $caldavCalendarObjects
Sabre\CalDAV\Issue220Test::$caldavCalendarObjects |
|
protected |
◆ $caldavCalendars
Sabre\CalDAV\Issue220Test::$caldavCalendars |
|
protected |
Initial value:= [
[
'id' => 1,
'name' => 'Calendar'
Definition at line 18 of file Issue220Test.php.
◆ $setupCalDAV
Sabre\CalDAV\Issue220Test::$setupCalDAV = true |
|
protected |
The documentation for this class was generated from the following file: