aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2021-10-21 12:37:51 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2021-11-23 09:28:57 +0100
commit66bdda568a16bbbc5ca75c9fc2fd8e5f4f0f200e (patch)
tree4faa32ccd095db834ae08c2440365c31c0aaed11 /tests
parentaf7bf98cbab882f8fa36c9551aef4bafd0e3495f (diff)
downloadnextcloud-server-66bdda568a16bbbc5ca75c9fc2fd8e5f4f0f200e.tar.gz
nextcloud-server-66bdda568a16bbbc5ca75c9fc2fd8e5f4f0f200e.zip
Fix Guzzle function calls
Since 1.7.0 and 2.0 these functions are turned into static methods. See https://github.com/guzzle/psr7#upgrading-from-function-api Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Http/Client/ResponseTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Http/Client/ResponseTest.php b/tests/lib/Http/Client/ResponseTest.php
index f8f520d6a73..1384e4e732c 100644
--- a/tests/lib/Http/Client/ResponseTest.php
+++ b/tests/lib/Http/Client/ResponseTest.php
@@ -9,7 +9,7 @@
namespace Test\Http\Client;
use GuzzleHttp\Psr7\Response as GuzzleResponse;
-use function GuzzleHttp\Psr7\stream_for;
+use GuzzleHttp\Psr7\Utils;
use OC\Http\Client\Response;
/**
@@ -25,7 +25,7 @@ class ResponseTest extends \Test\TestCase {
}
public function testGetBody() {
- $response = new Response($this->guzzleResponse->withBody(stream_for('MyResponse')));
+ $response = new Response($this->guzzleResponse->withBody(Utils::streamFor('MyResponse')));
$this->assertSame('MyResponse', $response->getBody());
}