Skip to content

fix tests #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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