aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php b/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php
index 90897f1c5..5e5c153e0 100644
--- a/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php
+++ b/vendor/sabre/dav/tests/Sabre/CalDAV/ExpandEventsDoubleEventsTest.php
@@ -84,11 +84,12 @@ END:VCALENDAR
$response = $this->request($request);
+ $bodyAsString = $response->getBodyAsString();
// Everts super awesome xml parser.
$body = substr(
- $response->body,
- $start = strpos($response->body, 'BEGIN:VCALENDAR'),
- strpos($response->body, 'END:VCALENDAR') - $start + 13
+ $bodyAsString,
+ $start = strpos($bodyAsString, 'BEGIN:VCALENDAR'),
+ strpos($bodyAsString, 'END:VCALENDAR') - $start + 13
);
$body = str_replace('
', '', $body);