"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/Sabre/CalDAV/Issue205Test.php" between
dav-4.0.2.tar.gz and dav-4.0.3.tar.gz

About: sabre/dav is a WebDAV framework for PHP allowing to create WebDAV, CalDAV and CardDAV servers.

Issue205Test.php  (dav-4.0.2):Issue205Test.php  (dav-4.0.3)
skipping to change at line 84 skipping to change at line 84
<C:comp-filter name="VALARM"> <C:comp-filter name="VALARM">
<C:time-range start="20120325T220000Z" end="20120401T215959Z "/> <C:time-range start="20120325T220000Z" end="20120401T215959Z "/>
</C:comp-filter> </C:comp-filter>
</C:comp-filter> </C:comp-filter>
</C:comp-filter> </C:comp-filter>
</C:filter> </C:filter>
</C:calendar-query>'); </C:calendar-query>');
$response = $this->request($request); $response = $this->request($request);
$this->assertFalse(strpos($response->body, '<s:exception>Exception</s:ex $this->assertFalse(strpos($response->getBodyAsString(), '<s:exception>Ex
ception>'), 'Exception occurred: '.$response->body); ception</s:exception>'), 'Exception occurred: '.$response->getBodyAsString());
$this->assertFalse(strpos($response->body, 'Unknown or bad format'), 'Da $this->assertFalse(strpos($response->getBodyAsString(), 'Unknown or bad
teTime unknown format Exception: '.$response->body); format'), 'DateTime unknown format Exception: '.$response->getBodyAsString());
// Everts super awesome xml parser. // Everts super awesome xml parser.
$body = substr( $body = substr(
$response->body, $response->getBodyAsString(),
$start = strpos($response->body, 'BEGIN:VCALENDAR'), $start = strpos($response->getBodyAsString(), 'BEGIN:VCALENDAR'),
strpos($response->body, 'END:VCALENDAR') - $start + 13 strpos($response->getBodyAsString(), 'END:VCALENDAR') - $start + 13
); );
$body = str_replace('&#13;', '', $body); $body = str_replace('&#13;', '', $body);
$vObject = VObject\Reader::read($body); $vObject = VObject\Reader::read($body);
$this->assertEquals(1, count($vObject->VEVENT)); $this->assertEquals(1, count($vObject->VEVENT));
} }
} }
 End of changes. 2 change blocks. 
7 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)