@@ -23,20 +23,20 @@ public function testInterface()
23
23
{
24
24
$ this ->assertInstanceOf (
25
25
'React\Filesystem\AdapterInterface ' ,
26
- new Adapter ($ this ->getMock ('React\EventLoop\LoopInterface ' ))
26
+ new Adapter ($ this ->createMock ('React\EventLoop\LoopInterface ' ))
27
27
);
28
28
}
29
29
30
30
public function testGetLoop ()
31
31
{
32
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
32
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
33
33
$ filesystem = new Adapter ($ loop );
34
34
$ this ->assertSame ($ loop , $ filesystem ->getLoop ());
35
35
}
36
36
37
37
public function testGetSetFilesystem ()
38
38
{
39
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
39
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
40
40
$ filesystem = new Adapter ($ loop , [
41
41
'pool ' => [
42
42
'class ' => 'WyriHaximus\React\ChildProcess\Pool\Pool\Dummy ' ,
@@ -187,7 +187,7 @@ public function testCallFilesystemCalls($externalMethod, $internalMethod, $exter
187
187
188
188
$ loop = Factory::create ();
189
189
190
- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
190
+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
191
191
'callFilesystem ' ,
192
192
], [
193
193
$ loop ,
@@ -207,11 +207,11 @@ public function testCallFilesystemCalls($externalMethod, $internalMethod, $exter
207
207
208
208
public function testHandleEvent ()
209
209
{
210
- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
210
+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
211
211
'workPendingCount ' ,
212
212
'unregister ' ,
213
213
], [
214
- $ this ->getMock ('React\EventLoop\LoopInterface ' ),
214
+ $ this ->createMock ('React\EventLoop\LoopInterface ' ),
215
215
]);
216
216
217
217
$ filesystem
@@ -239,11 +239,11 @@ public function testHandleEvent()
239
239
240
240
public function testHandleEventNothingToDo ()
241
241
{
242
- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
242
+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
243
243
'workPendingCount ' ,
244
244
'unregister ' ,
245
245
], [
246
- $ this ->getMock ('React\EventLoop\LoopInterface ' ),
246
+ $ this ->createMock ('React\EventLoop\LoopInterface ' ),
247
247
]);
248
248
249
249
$ filesystem
@@ -264,7 +264,7 @@ public function testHandleEventNothingToDo()
264
264
265
265
public function testExecuteDelayedCall ()
266
266
{
267
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
267
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
268
268
'addReadStream ' ,
269
269
'addWriteStream ' ,
270
270
'removeReadStream ' ,
@@ -323,7 +323,7 @@ public function testExecuteDelayedCall()
323
323
324
324
public function testExecuteDelayedCallFailed ()
325
325
{
326
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
326
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
327
327
'addReadStream ' ,
328
328
'addWriteStream ' ,
329
329
'removeReadStream ' ,
@@ -380,7 +380,7 @@ public function testExecuteDelayedCallFailed()
380
380
381
381
public function testExecuteDelayedCallFailedResult ()
382
382
{
383
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
383
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
384
384
'addReadStream ' ,
385
385
'addWriteStream ' ,
386
386
'removeReadStream ' ,
@@ -437,7 +437,7 @@ public function testExecuteDelayedCallFailedResult()
437
437
438
438
public function testUnregister ()
439
439
{
440
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
440
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
441
441
'addReadStream ' ,
442
442
'addWriteStream ' ,
443
443
'removeReadStream ' ,
@@ -456,7 +456,7 @@ public function testUnregister()
456
456
'removeSignal ' ,
457
457
]);
458
458
459
- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
459
+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
460
460
'workPendingCount ' ,
461
461
], [
462
462
$ loop ,
@@ -504,7 +504,7 @@ public function testUnregister()
504
504
505
505
public function testUnregisterInactive ()
506
506
{
507
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' , [
507
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' , [
508
508
'addReadStream ' ,
509
509
'addWriteStream ' ,
510
510
'removeReadStream ' ,
@@ -523,7 +523,7 @@ public function testUnregisterInactive()
523
523
'removeSignal ' ,
524
524
]);
525
525
526
- $ filesystem = $ this ->getMock ('React\Filesystem\Eio\Adapter ' , [
526
+ $ filesystem = $ this ->createMock ('React\Filesystem\Eio\Adapter ' , [
527
527
'workPendingCount ' ,
528
528
], [
529
529
$ loop ,
@@ -558,7 +558,7 @@ public function testUnregisterInactive()
558
558
559
559
public function testWorkPendingCount ()
560
560
{
561
- $ this ->assertInternalType ('int ' , (new Adapter ($ this ->getMock ('React\EventLoop\LoopInterface ' )))->workPendingCount ());
561
+ $ this ->assertInternalType ('int ' , (new Adapter ($ this ->createMock ('React\EventLoop\LoopInterface ' )))->workPendingCount ());
562
562
}
563
563
564
564
public function testGetContents ()
0 commit comments