aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php b/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
index 4e3276ed3..ac0cd5e91 100644
--- a/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
+++ b/vendor/sabre/dav/tests/Sabre/CardDAV/MultiGetTest.php
@@ -7,8 +7,6 @@ namespace Sabre\CardDAV;
use Sabre\DAV;
use Sabre\HTTP;
-require_once 'Sabre/HTTP/ResponseMock.php';
-
class MultiGetTest extends AbstractPluginTest
{
public function testMultiGet()
@@ -36,12 +34,13 @@ class MultiGetTest extends AbstractPluginTest
$this->server->exec();
- $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$response->body);
+ $bodyAsString = $response->getBodyAsString();
+ $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$bodyAsString);
// using the client for parsing
$client = new DAV\Client(['baseUri' => '/']);
- $result = $client->parseMultiStatus($response->body);
+ $result = $client->parseMultiStatus($bodyAsString);
$this->assertEquals([
'/addressbooks/user1/book1/card1' => [
@@ -78,12 +77,13 @@ class MultiGetTest extends AbstractPluginTest
$this->server->exec();
- $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$response->body);
+ $bodyAsString = $response->getBodyAsString();
+ $this->assertEquals(207, $response->status, 'Incorrect status code. Full response body:'.$bodyAsString);
// using the client for parsing
$client = new DAV\Client(['baseUri' => '/']);
- $result = $client->parseMultiStatus($response->body);
+ $result = $client->parseMultiStatus($bodyAsString);
$prodId = 'PRODID:-//Sabre//Sabre VObject '.\Sabre\VObject\Version::VERSION.'//EN';