aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Http/Client/ResponseTest.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-11-23 15:41:20 +0100
committerGitHub <noreply@github.com>2021-11-23 15:41:20 +0100
commitfd487c1a43874bf7eaeebe2ff822e18978b6d1e1 (patch)
treea69c74aa76577beac40700eaf47d28b5e8bd1af9 /tests/lib/Http/Client/ResponseTest.php
parent20dd46fcaed56b7df151fe1a5273cdadc22a583e (diff)
parent18a91f02fadf108bfa1a60f258ebacd2f802224b (diff)
downloadnextcloud-server-fd487c1a43874bf7eaeebe2ff822e18978b6d1e1.tar.gz
nextcloud-server-fd487c1a43874bf7eaeebe2ff822e18978b6d1e1.zip
Merge pull request #29432 from nextcloud/fix/support-php-8.1
Support PHP 8.1 - First batch
Diffstat (limited to 'tests/lib/Http/Client/ResponseTest.php')
-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());
}