diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-21 12:37:51 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-11-23 09:28:57 +0100 |
commit | 66bdda568a16bbbc5ca75c9fc2fd8e5f4f0f200e (patch) | |
tree | 4faa32ccd095db834ae08c2440365c31c0aaed11 /tests | |
parent | af7bf98cbab882f8fa36c9551aef4bafd0e3495f (diff) | |
download | nextcloud-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.php | 4 |
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()); } |