Skip to content

Commit 2338728

Browse files
committed
upgrade to integration tests 4
1 parent 94290f4 commit 2338728

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
},
1919
"require-dev": {
2020
"friendsofphp/php-cs-fixer": "^3.51",
21-
"php-http/client-integration-tests": "^3.1.1",
21+
"php-http/client-integration-tests": "dev-cleanup-major",
2222
"php-http/message": "^1.16",
2323
"php-http/client-common": "^2.7",
24-
"phpunit/phpunit": "^8.5.23 || ~9.5",
24+
"phpunit/phpunit": "^12.0",
2525
"php-http/message-factory": "^1.1"
2626
},
2727
"provide": {

tests/SocketHttpClientTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
use Http\Client\Socket\Exception\NetworkException;
88
use Http\Client\Socket\Exception\TimeoutException;
99
use Nyholm\Psr7\Factory\Psr17Factory;
10+
use Psr\Http\Message\ResponseInterface;
1011

1112
class SocketHttpClientTest extends BaseTestCase
1213
{
13-
public function createClient($options = [])
14+
public function createClient($options = []): HttpMethodsClient
1415
{
1516
return new HttpMethodsClient(new SocketHttpClient($options), new Psr17Factory());
1617
}
1718

18-
public function testTcpSocketDomain()
19+
public function testTcpSocketDomain(): void
1920
{
2021
$this->startServer('tcp-server');
2122
$client = $this->createClient(['remote_socket' => '127.0.0.1:19999']);
@@ -73,7 +74,7 @@ public function testSslRemoteInUri(): void
7374
]);
7475
$response = $client->get('/', []);
7576

76-
$this->assertInstanceOf('Psr\Http\Message\ResponseInterface', $response);
77+
$this->assertInstanceOf(ResponseInterface::class, $response);
7778
$this->assertEquals(200, $response->getStatusCode());
7879
}
7980

0 commit comments

Comments
 (0)