aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-05-07 23:35:02 +0200
committerMario <mario@mariovavti.com>2020-05-07 23:35:02 +0200
commitfae70bf0a7f1b566d25e30064f60d58ab150951a (patch)
tree1714511edb85ed0e28034ed9371d5fc515504fd6 /vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php
parentffd2faf8a09a870e8dbecb3ad168e0a9b25941d3 (diff)
downloadvolse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.tar.gz
volse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.tar.bz2
volse-hubzilla-fae70bf0a7f1b566d25e30064f60d58ab150951a.zip
Revert "composer updates"
This reverts commit dbfe748d274f6843fc91a3071df7be45c4ab5b00
Diffstat (limited to 'vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php')
-rw-r--r--vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php b/vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php
index 85a95c90e..e9362c8e4 100644
--- a/vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php
+++ b/vendor/sabre/dav/tests/Sabre/DAV/ClientTest.php
@@ -6,9 +6,11 @@ namespace Sabre\DAV;
use Sabre\HTTP\Response;
+require_once 'Sabre/DAV/ClientMock.php';
+
class ClientTest extends \PHPUnit\Framework\TestCase
{
- public function setup(): void
+ public function setUp()
{
if (!function_exists('curl_init')) {
$this->markTestSkipped('CURL must be installed to test the client');
@@ -23,9 +25,11 @@ class ClientTest extends \PHPUnit\Framework\TestCase
$this->assertInstanceOf('Sabre\DAV\ClientMock', $client);
}
+ /**
+ * @expectedException \InvalidArgumentException
+ */
public function testConstructNoBaseUri()
{
- $this->expectException('InvalidArgumentException');
$client = new ClientMock([]);
}
@@ -135,9 +139,11 @@ XML;
], $request->getHeaders());
}
+ /**
+ * @expectedException \Sabre\HTTP\ClientHttpException
+ */
public function testPropFindError()
{
- $this->expectException('Sabre\HTTP\ClientHttpException');
$client = new ClientMock([
'baseUri' => '/',
]);
@@ -219,10 +225,10 @@ XML;
/**
* @depends testPropPatch
+ * @expectedException \Sabre\HTTP\ClientHttpException
*/
public function testPropPatchHTTPError()
{
- $this->expectException('Sabre\HTTP\ClientHttpException');
$client = new ClientMock([
'baseUri' => '/',
]);
@@ -233,10 +239,10 @@ XML;
/**
* @depends testPropPatch
+ * @expectedException \Sabre\HTTP\ClientException
*/
public function testPropPatchMultiStatusError()
{
- $this->expectException('Sabre\HTTP\ClientException');
$client = new ClientMock([
'baseUri' => '/',
]);