@@ -23,20 +23,20 @@ public function testInterface()
2323 {
2424 $ this ->assertInstanceOf (
2525 'React\Filesystem\AdapterInterface ' ,
26- new Adapter ($ this ->getMock ('React\EventLoop\LoopInterface ' ))
26+ new Adapter ($ this ->createMock ('React\EventLoop\LoopInterface ' ))
2727 );
2828 }
2929
3030 public function testGetLoop ()
3131 {
32- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
32+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
3333 $ filesystem = new Adapter ($ loop );
3434 $ this ->assertSame ($ loop , $ filesystem ->getLoop ());
3535 }
3636
3737 public function testGetSetFilesystem ()
3838 {
39- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
39+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
4040 $ filesystem = new Adapter ($ loop , [
4141 'pool ' => [
4242 'class ' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy ' ,
@@ -187,7 +187,7 @@ public function testCallFilesystemCalls($externalMethod, $internalMethod, $exter
187187
188188 $ loop = Factory::create ();
189189
190- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
190+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
191191 'callFilesystem ' ,
192192 ], [
193193 $ loop ,
@@ -207,11 +207,11 @@ public function testCallFilesystemCalls($externalMethod, $internalMethod, $exter
207207
208208 public function testHandleEvent ()
209209 {
210- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
210+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
211211 'workPendingCount ' ,
212212 'unregister ' ,
213213 ], [
214- $ this ->getMock ('React\EventLoop\LoopInterface ' ),
214+ $ this ->createMock ('React\EventLoop\LoopInterface ' ),
215215 ]);
216216
217217 $ filesystem
@@ -239,11 +239,11 @@ public function testHandleEvent()
239239
240240 public function testHandleEventNothingToDo ()
241241 {
242- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
242+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
243243 'workPendingCount ' ,
244244 'unregister ' ,
245245 ], [
246- $ this ->getMock ('React\EventLoop\LoopInterface ' ),
246+ $ this ->createMock ('React\EventLoop\LoopInterface ' ),
247247 ]);
248248
249249 $ filesystem
@@ -264,7 +264,7 @@ public function testHandleEventNothingToDo()
264264
265265 public function testExecuteDelayedCall ()
266266 {
267- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
267+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
268268 'addReadStream ' ,
269269 'addWriteStream ' ,
270270 'removeReadStream ' ,
@@ -323,7 +323,7 @@ public function testExecuteDelayedCall()
323323
324324 public function testExecuteDelayedCallFailed ()
325325 {
326- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
326+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
327327 'addReadStream ' ,
328328 'addWriteStream ' ,
329329 'removeReadStream ' ,
@@ -380,7 +380,7 @@ public function testExecuteDelayedCallFailed()
380380
381381 public function testExecuteDelayedCallFailedResult ()
382382 {
383- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
383+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
384384 'addReadStream ' ,
385385 'addWriteStream ' ,
386386 'removeReadStream ' ,
@@ -437,7 +437,7 @@ public function testExecuteDelayedCallFailedResult()
437437
438438 public function testUnregister ()
439439 {
440- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
440+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
441441 'addReadStream ' ,
442442 'addWriteStream ' ,
443443 'removeReadStream ' ,
@@ -456,7 +456,7 @@ public function testUnregister()
456456 'removeSignal ' ,
457457 ]);
458458
459- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
459+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
460460 'workPendingCount ' ,
461461 ], [
462462 $ loop ,
@@ -504,7 +504,7 @@ public function testUnregister()
504504
505505 public function testUnregisterInactive ()
506506 {
507- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
507+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
508508 'addReadStream ' ,
509509 'addWriteStream ' ,
510510 'removeReadStream ' ,
@@ -523,7 +523,7 @@ public function testUnregisterInactive()
523523 'removeSignal ' ,
524524 ]);
525525
526- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
526+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
527527 'workPendingCount ' ,
528528 ], [
529529 $ loop ,
@@ -558,7 +558,7 @@ public function testUnregisterInactive()
558558
559559 public function testWorkPendingCount ()
560560 {
561- $ this ->assertInternalType ('int ' , (new Adapter ($ this ->getMock ('React\EventLoop\LoopInterface ' )))->workPendingCount ());
561+ $ this ->assertInternalType ('int ' , (new Adapter ($ this ->createMock ('React\EventLoop\LoopInterface ' )))->workPendingCount ());
562562 }
563563
564564 public function testGetContents ()
0 commit comments