Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 5ab60e8

Browse files
committed
Fix tests
1 parent 8d09cc6 commit 5ab60e8

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,7 @@
2323
"require-dev": {
2424
"ext-curl": "*",
2525
"php-http/adapter-integration-tests": "^0.4",
26-
"guzzlehttp/ringphp": "^1.1",
27-
"php-http/client-common": "^1.0",
28-
"guzzlehttp/psr7": "^1.2",
29-
"puli/composer-plugin": "1.0.0-beta9"
26+
"guzzlehttp/ringphp": "^1.1"
3027
},
3128
"provide": {
3229
"php-http/client-implementation": "1.0"

tests/ExceptionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use GuzzleHttp\Psr7\Request as Psr7Request;
99
use GuzzleHttp\Stream\Stream;
1010
use Http\Adapter\Guzzle5\Client;
11+
use Http\Message\MessageFactory\GuzzleMessageFactory;
1112

1213
/**
1314
* @author Tobias Nyholm <[email protected]>
@@ -30,7 +31,7 @@ protected function makeRequest(GuzzleExceptions\TransferException $exception)
3031
$client->expects($this->any())->method('createRequest')->willReturn($this->guzzleRequest);
3132

3233
$request = new Psr7Request('GET', 'http://foo.com');
33-
(new Client($client))->sendRequest($request);
34+
(new Client($client, new GuzzleMessageFactory()))->sendRequest($request);
3435
}
3536

3637
public function testConnectException()

tests/HttpAdapterTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use GuzzleHttp\Client as GuzzleClient;
66
use Http\Adapter\Guzzle5\Client;
77
use Http\Client\Tests\HttpClientTest;
8+
use Http\Message\MessageFactory\GuzzleMessageFactory;
89

910
/**
1011
* @author GeLo <[email protected]>
@@ -16,7 +17,10 @@ abstract class HttpAdapterTest extends HttpClientTest
1617
*/
1718
protected function createHttpAdapter()
1819
{
19-
return new Client(new GuzzleClient(['handler' => $this->createHandler()]));
20+
return new Client(
21+
new GuzzleClient(['handler' => $this->createHandler()]),
22+
new GuzzleMessageFactory()
23+
);
2024
}
2125

2226
/**

0 commit comments

Comments
 (0)