Skip to content

Commit

Permalink
Updated Guzzle to 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouter Vanelslander committed Sep 22, 2023
1 parent 9db7d8d commit 2e692c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"require": {
"php": "^7.1 || ^8.0",
"guzzlehttp/guzzle": "~6.0",
"guzzlehttp/guzzle": "^7.0",
"yogarine/doctrine-annotation-autoload": "^0.3.0",
"gammadia/jms-serializer-1.x": "^1.14",
"simple-bus/jms-serializer-bridge": "^1.0"
Expand Down
5 changes: 4 additions & 1 deletion test/SearchClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
use CultuurNet\SearchV3\ValueObjects\PagedCollection;
use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Psr7\Utils;
use PHPUnit\Framework\MockObject\MockObject;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\StreamInterface;

final class SearchClientTest extends TestCase
{
Expand Down Expand Up @@ -63,9 +65,10 @@ public function provideResponseMockup(): ResponseInterface
$response = $this->getMockBuilder(ResponseInterface::class)
->disableOriginalConstructor()
->getMock();

$response->expects($this->once())
->method('getBody')
->willReturn('test response');
->willReturn(Utils::streamFor('test response'));

return $response;
}
Expand Down

0 comments on commit 2e692c2

Please sign in to comment.