Skip to content

Commit

Permalink
Merge pull request #63 from php-http/fix-build
Browse files Browse the repository at this point in the history
fix tests
  • Loading branch information
dbu authored May 17, 2023
2 parents 934fd35 + 6277260 commit 86cc715
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/ClientSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit 86cc715

Please sign in to comment.