File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff line change 77use Http \Client \Socket \Exception \NetworkException ;
88use Http \Client \Socket \Exception \TimeoutException ;
99use Nyholm \Psr7 \Factory \Psr17Factory ;
10+ use Psr \Http \Message \ResponseInterface ;
1011
1112class 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
You can’t perform that action at this time.
0 commit comments