@@ -250,7 +250,7 @@ public function testClosingInputWillRemoveAllDataListeners()
250250
251251 public function testClosingParserWillCloseInput ()
252252 {
253- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
253+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
254254 $ this ->input ->expects ($ this ->once ())->method ('isReadable ' )->willReturn (true );
255255 $ this ->input ->expects ($ this ->once ())->method ('close ' );
256256
@@ -277,7 +277,7 @@ public function testClosingParserWillRemoveAllDataListeners()
277277
278278 public function testClosingParserMultipleTimesWillOnlyCloseOnce ()
279279 {
280- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
280+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
281281 $ this ->input ->expects ($ this ->once ())->method ('isReadable ' )->willReturn (true );
282282 $ this ->input ->expects ($ this ->once ())->method ('close ' );
283283
@@ -290,7 +290,7 @@ public function testClosingParserMultipleTimesWillOnlyCloseOnce()
290290
291291 public function testPassingClosedInputToParserWillCloseParser ()
292292 {
293- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
293+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
294294 $ this ->input ->expects ($ this ->once ())->method ('isReadable ' )->willReturn (false );
295295
296296 $ this ->parser = new ControlCodeParser ($ this ->input );
@@ -311,7 +311,7 @@ public function testPassingClosedInputToParserWillNotAddAnyDataListeners()
311311
312312 public function testWillForwardPauseToInput ()
313313 {
314- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
314+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
315315 $ this ->input ->expects ($ this ->once ())->method ('pause ' );
316316
317317 $ this ->parser = new ControlCodeParser ($ this ->input );
@@ -321,7 +321,7 @@ public function testWillForwardPauseToInput()
321321
322322 public function testWillForwardResumeToInput ()
323323 {
324- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
324+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
325325 $ this ->input ->expects ($ this ->once ())->method ('resume ' );
326326
327327 $ this ->parser = new ControlCodeParser ($ this ->input );
@@ -331,7 +331,7 @@ public function testWillForwardResumeToInput()
331331
332332 public function testPipeWillReturnDestStream ()
333333 {
334- $ dest = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
334+ $ dest = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
335335
336336 $ ret = $ this ->parser ->pipe ($ dest );
337337
0 commit comments