Skip to content

Commit 86cc715

Browse files
authored
Merge pull request #63 from php-http/fix-build
fix tests
2 parents 934fd35 + 6277260 commit 86cc715

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/ClientSpec.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
use Http\Client\HttpAsyncClient;
66
use Http\Client\HttpClient;
77
use Http\Message\RequestMatcher;
8-
use Http\Message\ResponseFactory;
98
use Http\Mock\Client;
109
use Http\Client\Exception as ClientExceptionInterface;
1110
use Psr\Http\Message\RequestInterface;
11+
use Psr\Http\Message\ResponseFactoryInterface;
1212
use Psr\Http\Message\ResponseInterface;
1313
use PhpSpec\ObjectBehavior;
1414

1515
class ClientSpec extends ObjectBehavior
1616
{
17-
function let(ResponseFactory $responseFactory)
17+
function let(ResponseFactoryInterface $responseFactory)
1818
{
1919
$this->beConstructedWith($responseFactory);
2020
}
@@ -64,7 +64,7 @@ function it_throws_the_default_exception_for_a_request(RequestInterface $request
6464

6565
function it_creates_an_empty_response_when_none_is_added(
6666
RequestInterface $request,
67-
ResponseFactory $responseFactory,
67+
ResponseFactoryInterface $responseFactory,
6868
ResponseInterface $response
6969
) {
7070
$responseFactory->createResponse()->willReturn($response);
@@ -88,7 +88,7 @@ function it_returns_false_when_there_is_no_last_request()
8888
}
8989

9090
function it_reset(
91-
ResponseFactory $responseFactory,
91+
ResponseFactoryInterface $responseFactory,
9292
RequestInterface $request,
9393
ResponseInterface $response,
9494
ResponseInterface $newResponse

0 commit comments

Comments
 (0)