File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ $factory = new Factory($loop);
9191```
9292
9393If you need custom DNS or proxy settings, you can explicitly pass a
94- custom instance of the [ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket-client #connectorinterface ) :
94+ custom instance of the [ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket#connectorinterface ) :
9595
9696``` php
9797$factory = new Factory($loop, $connector);
Original file line number Diff line number Diff line change 1414 "php" : " >=5.3" ,
1515 "evenement/evenement" : " ~1.0|~2.0" ,
1616 "react/promise" : " ~1.0|~2.0" ,
17- "react/socket-client " : " ^0.7" ,
17+ "react/socket" : " ^0.7" ,
1818 "react/event-loop" : " 0.3.*|0.4.*"
1919 },
2020 "require-dev" : {
Original file line number Diff line number Diff line change 1010use Clue \React \Ami \Protocol \UnexpectedMessageException ;
1111use Evenement \EventEmitter ;
1212use React \Promise \Deferred ;
13- use React \SocketClient \ConnectionInterface ;
13+ use React \Socket \ConnectionInterface ;
1414use Exception ;
1515use UnexpectedValueException ;
1616
Original file line number Diff line number Diff line change 33namespace Clue \React \Ami ;
44
55use React \EventLoop \LoopInterface ;
6- use React \SocketClient \ConnectionInterface ;
7- use React \SocketClient \Connector ;
8- use React \SocketClient \ConnectorInterface ;
6+ use React \Socket \ConnectionInterface ;
7+ use React \Socket \Connector ;
8+ use React \Socket \ConnectorInterface ;
99use InvalidArgumentException ;
1010
1111class Factory
Original file line number Diff line number Diff line change @@ -45,6 +45,6 @@ public function testUnexpectedResponseEmitsErrorAndClosesClient()
4545
4646 private function createStreamMock ()
4747 {
48- return $ this ->getMockBuilder ('React\SocketClient\StreamConnection ' )->disableOriginalConstructor ()->setMethods (array ('write ' , 'close ' ))->getMock ();
48+ return $ this ->getMockBuilder ('React\Socket\Connection ' )->disableOriginalConstructor ()->setMethods (array ('write ' , 'close ' ))->getMock ();
4949 }
5050}
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public function testCollectingSIPEvents()
5151
5252 private function createClientMock ()
5353 {
54- $ stream = $ this ->getMockBuilder ('React\SocketClient\StreamConnection ' )->disableOriginalConstructor ()->getMock ();
54+ $ stream = $ this ->getMockBuilder ('React\Socket\Connection ' )->disableOriginalConstructor ()->getMock ();
5555
5656 $ client = $ this ->getMockBuilder ('Clue\React\Ami\Client ' )->setMethods (array ('createAction ' ))->setConstructorArgs (array ($ stream ))->getMock ();
5757
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class FactoryTest extends TestCase
1111 public function setUp ()
1212 {
1313 $ this ->loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )->getMock ();
14- $ this ->tcp = $ this ->getMockBuilder ('React\SocketClient \ConnectorInterface ' )->getMock ();
14+ $ this ->tcp = $ this ->getMockBuilder ('React\Socket \ConnectorInterface ' )->getMock ();
1515
1616 $ this ->factory = new Factory ($ this ->loop , $ this ->tcp );
1717 }
You can’t perform that action at this time.
0 commit comments