File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 "react/stream" : " ~0.4.0|~0.3.0"
2121 },
2222 "require-dev" : {
23- "phpunit/phpunit" : " ^4.8"
23+ "phpunit/phpunit" : " ^5.0 || ^ 4.8"
2424 }
2525}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class BufferedChannelTest extends TestCase
66{
77 public function testNumberOfWritesToStream ()
88 {
9- $ stream = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
9+ $ stream = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
1010
1111 $ called = 0 ;
1212 $ stream ->expects ($ this ->any ())->method ('write ' )->will ($ this ->returnCallback (function () use (&$ called ) {
@@ -44,7 +44,7 @@ public function testNumberOfWritesToStream()
4444
4545 public function testResultingStreamBuffer ()
4646 {
47- $ stream = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
47+ $ stream = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
4848
4949 $ buffered = '' ;
5050 $ stream ->expects ($ this ->any ())->method ('write ' )->will ($ this ->returnCallback (function ($ data ) use (&$ buffered ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ protected function expectCallableOnce()
2020 */
2121 protected function createCallableMock ()
2222 {
23- return $ this ->getMock ('CallableStub ' );
23+ return $ this ->getMockBuilder ('CallableStub ' )-> getMock ( );
2424 }
2525}
2626
You can’t perform that action at this time.
0 commit comments