@@ -19,7 +19,7 @@ public function testGetAddressWillBePassedThroughToTcpServer()
1919 $ tcp = $ this ->getMockBuilder ('React\Socket\ServerInterface ' )->getMock ();
2020 $ tcp ->expects ($ this ->once ())->method ('getAddress ' )->willReturn ('127.0.0.1:1234 ' );
2121
22- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
22+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
2323
2424 $ server = new SecureServer ($ tcp , $ loop , array ());
2525
@@ -31,7 +31,7 @@ public function testPauseWillBePassedThroughToTcpServer()
3131 $ tcp = $ this ->getMockBuilder ('React\Socket\ServerInterface ' )->getMock ();
3232 $ tcp ->expects ($ this ->once ())->method ('pause ' );
3333
34- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
34+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
3535
3636 $ server = new SecureServer ($ tcp , $ loop , array ());
3737
@@ -43,7 +43,7 @@ public function testResumeWillBePassedThroughToTcpServer()
4343 $ tcp = $ this ->getMockBuilder ('React\Socket\ServerInterface ' )->getMock ();
4444 $ tcp ->expects ($ this ->once ())->method ('resume ' );
4545
46- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
46+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
4747
4848 $ server = new SecureServer ($ tcp , $ loop , array ());
4949
@@ -55,7 +55,7 @@ public function testCloseWillBePassedThroughToTcpServer()
5555 $ tcp = $ this ->getMockBuilder ('React\Socket\ServerInterface ' )->getMock ();
5656 $ tcp ->expects ($ this ->once ())->method ('close ' );
5757
58- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
58+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
5959
6060 $ server = new SecureServer ($ tcp , $ loop , array ());
6161
@@ -64,7 +64,7 @@ public function testCloseWillBePassedThroughToTcpServer()
6464
6565 public function testConnectionWillBeEndedWithErrorIfItIsNotAStream ()
6666 {
67- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
67+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
6868
6969 $ tcp = new TcpServer (0 , $ loop );
7070
@@ -80,7 +80,7 @@ public function testConnectionWillBeEndedWithErrorIfItIsNotAStream()
8080
8181 public function testSocketErrorWillBeForwarded ()
8282 {
83- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
83+ $ loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
8484
8585 $ tcp = new TcpServer (0 , $ loop );
8686
0 commit comments