From 6277260264541cb3c355ddcaf3547e048bf357c8 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Wed, 17 May 2023 13:04:18 +0200 Subject: [PATCH] fix tests --- spec/ClientSpec.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/ClientSpec.php b/spec/ClientSpec.php index af02159..4040d3d 100644 --- a/spec/ClientSpec.php +++ b/spec/ClientSpec.php @@ -5,16 +5,16 @@ use Http\Client\HttpAsyncClient; use Http\Client\HttpClient; use Http\Message\RequestMatcher; -use Http\Message\ResponseFactory; use Http\Mock\Client; use Http\Client\Exception as ClientExceptionInterface; use Psr\Http\Message\RequestInterface; +use Psr\Http\Message\ResponseFactoryInterface; use Psr\Http\Message\ResponseInterface; use PhpSpec\ObjectBehavior; class ClientSpec extends ObjectBehavior { - function let(ResponseFactory $responseFactory) + function let(ResponseFactoryInterface $responseFactory) { $this->beConstructedWith($responseFactory); } @@ -64,7 +64,7 @@ function it_throws_the_default_exception_for_a_request(RequestInterface $request function it_creates_an_empty_response_when_none_is_added( RequestInterface $request, - ResponseFactory $responseFactory, + ResponseFactoryInterface $responseFactory, ResponseInterface $response ) { $responseFactory->createResponse()->willReturn($response); @@ -88,7 +88,7 @@ function it_returns_false_when_there_is_no_last_request() } function it_reset( - ResponseFactory $responseFactory, + ResponseFactoryInterface $responseFactory, RequestInterface $request, ResponseInterface $response, ResponseInterface $newResponse