File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1818 "react/stream" : " ^0.4 || ^0.3"
1919 },
2020 "require-dev" : {
21- "phpunit/phpunit" : " ^4.8"
21+ "phpunit/phpunit" : " ^5.0 || ^ 4.8"
2222 }
2323}
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ public function testEmitErrorEventWillForwardAndClose()
251251
252252 public function testPipeReturnsDestStream ()
253253 {
254- $ dest = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
254+ $ dest = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
255255
256256 $ ret = $ this ->sequencer ->pipe ($ dest );
257257
@@ -260,7 +260,7 @@ public function testPipeReturnsDestStream()
260260
261261 public function testForwardPauseToInput ()
262262 {
263- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
263+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
264264 $ this ->input ->expects ($ this ->once ())->method ('pause ' );
265265
266266 $ this ->sequencer = new Sequencer ($ this ->input );
@@ -269,7 +269,7 @@ public function testForwardPauseToInput()
269269
270270 public function testForwardResumeToInput ()
271271 {
272- $ this ->input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
272+ $ this ->input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
273273 $ this ->input ->expects ($ this ->once ())->method ('resume ' );
274274
275275 $ this ->sequencer = new Sequencer ($ this ->input );
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ protected function expectCallableOnceParameter($type)
5353 */
5454 protected function createCallableMock ()
5555 {
56- return $ this ->getMock ('CallableStub ' );
56+ return $ this ->getMockBuilder ('CallableStub ' )-> getMock ( );
5757 }
5858}
5959
You can’t perform that action at this time.
0 commit comments