aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/FSExt
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-01-12 09:18:07 +0000
committerMario <mario@mariovavti.com>2020-01-12 09:18:07 +0000
commit8cb968c4b03e5d5462edec56f31625e9f15a6a15 (patch)
treeccd1974ee57d17492a25846b2e4fae28b97c1e2f /vendor/sabre/dav/tests/Sabre/DAV/FSExt
parentf645c6f3a57bf5f53bbb2bde362b2447f725c977 (diff)
downloadvolse-hubzilla-8cb968c4b03e5d5462edec56f31625e9f15a6a15.tar.gz
volse-hubzilla-8cb968c4b03e5d5462edec56f31625e9f15a6a15.tar.bz2
volse-hubzilla-8cb968c4b03e5d5462edec56f31625e9f15a6a15.zip
composer update sabre/dav
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAV/FSExt')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/FSExt/ServerTest.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/FSExt/ServerTest.php b/vendor/sabre/dav/tests/Sabre/DAV/FSExt/ServerTest.php
index daa04c354..f53807e6c 100644
--- a/vendor/sabre/dav/tests/Sabre/DAV/FSExt/ServerTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAV/FSExt/ServerTest.php
@@ -34,7 +34,7 @@ class ServerTest extends DAV\AbstractServer
$this->response->getHeaders()
);
- $this->assertEquals('Test contents', stream_get_contents($this->response->body));
+ $this->assertEquals('Test contents', $this->response->getBodyAsString());
}
public function testHEAD()
@@ -55,7 +55,7 @@ class ServerTest extends DAV\AbstractServer
);
$this->assertEquals(200, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
}
public function testPut()
@@ -73,7 +73,7 @@ class ServerTest extends DAV\AbstractServer
], $this->response->getHeaders());
$this->assertEquals(201, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertEquals('Testing new file', file_get_contents($filename));
}
@@ -105,7 +105,7 @@ class ServerTest extends DAV\AbstractServer
], $this->response->getHeaders());
$this->assertEquals(201, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertTrue(is_dir($this->tempDir.'/testcol'));
}
@@ -119,7 +119,7 @@ class ServerTest extends DAV\AbstractServer
$this->assertEquals('0', $this->response->getHeader('Content-Length'));
$this->assertEquals(204, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertEquals('Testing updated file', file_get_contents($this->tempDir.'/test.txt'));
}
@@ -135,7 +135,7 @@ class ServerTest extends DAV\AbstractServer
], $this->response->getHeaders());
$this->assertEquals(204, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertFalse(file_exists($this->tempDir.'/test.txt'));
}
@@ -153,7 +153,7 @@ class ServerTest extends DAV\AbstractServer
'Content-Length' => ['0'],
], $this->response->getHeaders());
$this->assertEquals(204, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertFalse(file_exists($this->tempDir.'/testcol'));
}
@@ -173,7 +173,7 @@ class ServerTest extends DAV\AbstractServer
], $this->response->getHeaders());
$this->assertEquals(200, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
}
public function testMove()
@@ -185,7 +185,7 @@ class ServerTest extends DAV\AbstractServer
$this->server->exec();
$this->assertEquals(201, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertEquals([
'Content-Length' => ['0'],
@@ -220,7 +220,7 @@ class ServerTest extends DAV\AbstractServer
$this->server->exec();
$this->assertEquals(201, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertEquals([
'Content-Length' => ['0'],
@@ -241,7 +241,7 @@ class ServerTest extends DAV\AbstractServer
$this->server->exec();
$this->assertEquals(201, $this->response->status);
- $this->assertEquals('', $this->response->body);
+ $this->assertEquals('', $this->response->getBodyAsString());
$this->assertEquals([
'Content-Length' => ['0'],