File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
"require" : {
7
7
"php" : " >=5.4.0" ,
8
8
"guzzlehttp/psr7" : " ^1.0" ,
9
- "react/socket-client" : " ^0.5 || ^0.4 || ^0.3 " ,
9
+ "react/socket-client" : " ^0.6 " ,
10
10
"react/dns" : " 0.4.*" ,
11
11
"react/event-loop" : " 0.4.*" ,
12
12
"react/stream" : " 0.4.*" ,
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ protected function connect()
231
231
$ port = $ this ->requestData ->getPort ();
232
232
233
233
return $ this ->connector
234
- ->create ($ host, $ port );
234
+ ->connect ($ host . ' : ' . $ port );
235
235
}
236
236
237
237
public function setResponseFactory ($ factory )
Original file line number Diff line number Diff line change @@ -480,8 +480,8 @@ private function successfulAsyncConnectionMock()
480
480
481
481
$ this ->connector
482
482
->expects ($ this ->once ())
483
- ->method ('create ' )
484
- ->with ('www.example.com ' , 80 )
483
+ ->method ('connect ' )
484
+ ->with ('www.example.com:80 ' )
485
485
->will ($ this ->returnValue ($ deferred ->promise ()));
486
486
487
487
return function () use ($ deferred ) {
@@ -493,8 +493,8 @@ private function rejectedConnectionMock()
493
493
{
494
494
$ this ->connector
495
495
->expects ($ this ->once ())
496
- ->method ('create ' )
497
- ->with ('www.example.com ' , 80 )
496
+ ->method ('connect ' )
497
+ ->with ('www.example.com:80 ' )
498
498
->will ($ this ->returnValue (new RejectedPromise (new \RuntimeException ())));
499
499
}
500
500
You can’t perform that action at this time.
0 commit comments