@@ -69,7 +69,7 @@ public function provideInvalidMatcher()
6969 */
7070 public function testInvalidMatcherThrowsException ($ matcher )
7171 {
72- $ connector = $ this ->getMock ('React\SocketClient\ConnectorInterface ' );
72+ $ connector = $ this ->getMockBuilder ('React\SocketClient\ConnectorInterface ' )-> getMock ( );
7373
7474 new ConnectionManagerSelective (array (
7575 $ matcher => $ connector
@@ -78,9 +78,9 @@ public function testInvalidMatcherThrowsException($matcher)
7878
7979 public function testExactDomainMatchForwardsToConnector ()
8080 {
81- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
81+ $ promise = $ this ->getMockBuilder ('React\Promise\PromiseInterface ' )-> getMock ( );
8282
83- $ connector = $ this ->getMock ('React\SocketClient\ConnectorInterface ' );
83+ $ connector = $ this ->getMockBuilder ('React\SocketClient\ConnectorInterface ' )-> getMock ( );
8484 $ connector ->expects ($ this ->once ())->method ('create ' )->with ('example.com ' , 80 )->willReturn ($ promise );
8585
8686 $ cm = new ConnectionManagerSelective (array (
@@ -94,9 +94,9 @@ public function testExactDomainMatchForwardsToConnector()
9494
9595 public function testExactIpv6MatchForwardsToConnector ()
9696 {
97- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
97+ $ promise = $ this ->getMockBuilder ('React\Promise\PromiseInterface ' )-> getMock ( );
9898
99- $ connector = $ this ->getMock ('React\SocketClient\ConnectorInterface ' );
99+ $ connector = $ this ->getMockBuilder ('React\SocketClient\ConnectorInterface ' )-> getMock ( );
100100 $ connector ->expects ($ this ->once ())->method ('create ' )->with ('::1 ' , 80 )->willReturn ($ promise );
101101
102102 $ cm = new ConnectionManagerSelective (array (
@@ -110,9 +110,9 @@ public function testExactIpv6MatchForwardsToConnector()
110110
111111 public function testExactIpv6WithPortMatchForwardsToConnector ()
112112 {
113- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
113+ $ promise = $ this ->getMockBuilder ('React\Promise\PromiseInterface ' )-> getMock ( );
114114
115- $ connector = $ this ->getMock ('React\SocketClient\ConnectorInterface ' );
115+ $ connector = $ this ->getMockBuilder ('React\SocketClient\ConnectorInterface ' )-> getMock ( );
116116 $ connector ->expects ($ this ->once ())->method ('create ' )->with ('::1 ' , 80 )->willReturn ($ promise );
117117
118118 $ cm = new ConnectionManagerSelective (array (
@@ -126,7 +126,7 @@ public function testExactIpv6WithPortMatchForwardsToConnector()
126126
127127 public function testNotMatchingDomainWillReject ()
128128 {
129- $ connector = $ this ->getMock ('React\SocketClient\ConnectorInterface ' );
129+ $ connector = $ this ->getMockBuilder ('React\SocketClient\ConnectorInterface ' )-> getMock ( );
130130 $ connector ->expects ($ this ->never ())->method ('create ' );
131131
132132 $ cm = new ConnectionManagerSelective (array (
0 commit comments