@@ -10,15 +10,15 @@ class ProcessLauncherTest extends TestCase
1010
1111 public function setUp ()
1212 {
13- $ this ->loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
13+ $ this ->loop = $ this ->getMockBuilder ('React\EventLoop\LoopInterface ' )-> getMock ( );
1414 $ this ->processLauncher = new ProcessLauncher ($ this ->loop );
1515 }
1616
1717 public function testProcessWillBeStarted ()
1818 {
1919 $ process = $ this ->getMockBuilder ('React\ChildProcess\Process ' )->disableOriginalConstructor ()->getMock ();
20- $ process ->stdout = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
21- $ process ->stdin = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
20+ $ process ->stdout = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
21+ $ process ->stdin = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
2222
2323 $ process ->expects ($ this ->once ())->method ('start ' );
2424
@@ -31,7 +31,7 @@ public function testClosingStreamTerminatesRunningProcess()
3131 {
3232 $ process = $ this ->getMockBuilder ('React\ChildProcess\Process ' )->disableOriginalConstructor ()->getMock ();
3333 $ process ->stdout = new ReadableStream ();
34- $ process ->stdin = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
34+ $ process ->stdin = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
3535
3636 $ process ->expects ($ this ->once ())->method ('isRunning ' )->will ($ this ->returnValue (true ));
3737 $ process ->expects ($ this ->once ())->method ('terminate ' )->with ($ this ->equalTo (SIGKILL ));
@@ -45,7 +45,7 @@ public function testClosingStreamOfNonRunningProcessWillNotTerminate()
4545 {
4646 $ process = $ this ->getMockBuilder ('React\ChildProcess\Process ' )->disableOriginalConstructor ()->getMock ();
4747 $ process ->stdout = new ReadableStream ();
48- $ process ->stdin = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
48+ $ process ->stdin = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
4949
5050 $ process ->expects ($ this ->once ())->method ('isRunning ' )->will ($ this ->returnValue (false ));
5151 $ process ->expects ($ this ->never ())->method ('terminate ' );
0 commit comments