@@ -41,7 +41,7 @@ public function testGetPath()
41
41
public function testLs ()
42
42
{
43
43
$ path = '/home/foo/bar ' ;
44
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
44
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
45
45
46
46
$ filesystem = $ this ->mockAdapter ($ loop );
47
47
@@ -62,11 +62,11 @@ public function testLs()
62
62
public function testLsStream ()
63
63
{
64
64
$ path = '/home/foo/bar ' ;
65
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
65
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
66
66
67
67
$ filesystem = $ this ->mockAdapter ($ loop );
68
68
69
- $ lsStream = $ this ->getMock ('React\Filesystem\ObjectStream ' );
69
+ $ lsStream = $ this ->createMock ('React\Filesystem\ObjectStream ' );
70
70
71
71
$ filesystem
72
72
->expects ($ this ->once ())
@@ -125,7 +125,7 @@ public function testRemove()
125
125
{
126
126
$ path = 'foo.bar ' ;
127
127
$ filesystem = $ this ->mockAdapter ();
128
- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
128
+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
129
129
130
130
$ filesystem
131
131
->expects ($ this ->once ())
@@ -139,11 +139,11 @@ public function testRemove()
139
139
public function testSize ()
140
140
{
141
141
$ path = '/home/foo/bar ' ;
142
- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
142
+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
143
143
144
144
$ filesystem = $ this ->mockAdapter ($ loop );
145
145
146
- $ lsPromise = $ this ->getMock ('React\Promise\PromiseInterface ' , [
146
+ $ lsPromise = $ this ->createMock ('React\Promise\PromiseInterface ' , [
147
147
'then ' ,
148
148
]);
149
149
@@ -156,7 +156,7 @@ public function testSize()
156
156
}))
157
157
;
158
158
159
- $ directory = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
159
+ $ directory = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
160
160
'ls ' ,
161
161
'processSizeContents ' ,
162
162
], [
@@ -175,7 +175,7 @@ public function testSize()
175
175
->expects ($ this ->once ())
176
176
->method ('processSizeContents ' )
177
177
->with ('foo.bar ' , $ this ->isType ('boolean ' ))
178
- ->will ($ this ->returnValue ($ this ->getMock ('React\Promise\PromiseInterface ' )))
178
+ ->will ($ this ->returnValue ($ this ->createMock ('React\Promise\PromiseInterface ' )))
179
179
;
180
180
181
181
$ this ->assertInstanceOf ('React\Promise\PromiseInterface ' , $ directory ->size ());
@@ -185,16 +185,16 @@ public function testChmodRecursive()
185
185
{
186
186
$ filesystem = $ this ->mockAdapter ();
187
187
188
- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
188
+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
189
189
'execute ' ,
190
190
], [
191
- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
191
+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
192
192
'foo/bar/ ' ,
193
193
Filesystem::createFromAdapter ($ filesystem ),
194
194
]),
195
195
]);
196
196
197
- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
197
+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
198
198
199
199
$ recursiveInvoker
200
200
->expects ($ this ->once ())
@@ -210,16 +210,16 @@ public function testChownRecursive()
210
210
{
211
211
$ filesystem = $ this ->mockAdapter ();
212
212
213
- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
213
+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
214
214
'execute ' ,
215
215
], [
216
- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
216
+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
217
217
'foo/bar/ ' ,
218
218
Filesystem::createFromAdapter ($ filesystem ),
219
219
]),
220
220
]);
221
221
222
- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
222
+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
223
223
224
224
$ recursiveInvoker
225
225
->expects ($ this ->once ())
@@ -235,16 +235,16 @@ public function testRemoveRecursive()
235
235
{
236
236
$ filesystem = $ this ->mockAdapter ();
237
237
238
- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
238
+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
239
239
'execute ' ,
240
240
], [
241
- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
241
+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
242
242
'foo/bar/ ' ,
243
243
Filesystem::createFromAdapter ($ filesystem ),
244
244
]),
245
245
]);
246
246
247
- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
247
+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
248
248
249
249
$ recursiveInvoker
250
250
->expects ($ this ->once ())
@@ -260,7 +260,7 @@ public function testCopy()
260
260
{
261
261
$ filesystem = $ this ->mockAdapter ();
262
262
263
- $ directoryFrom = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
263
+ $ directoryFrom = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
264
264
'copyStreaming ' ,
265
265
], [
266
266
'foo.bar ' ,
@@ -338,7 +338,7 @@ public function testCopyStreamingABC()
338
338
->will ($ this ->returnValue (new FulfilledPromise ()))
339
339
;
340
340
341
- $ directoryFrom = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
341
+ $ directoryFrom = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
342
342
'lsStreaming ' ,
343
343
], [
344
344
'foo.bar ' ,
@@ -358,7 +358,7 @@ public function testCopyStreamingABC()
358
358
$ returnedStream = $ directoryFrom ->copyStreaming ($ directoryTo );
359
359
$ this ->assertInstanceOf ('React\Filesystem\ObjectStream ' , $ returnedStream );
360
360
361
- $ file = $ this ->getMock ('React\Filesystem\Node\File ' , [
361
+ $ file = $ this ->createMock ('React\Filesystem\Node\File ' , [
362
362
'copyStreaming ' ,
363
363
], [
364
364
'foo.bar ' ,
@@ -378,7 +378,7 @@ public function testCopyStreamingABC()
378
378
$ file ,
379
379
]);
380
380
381
- $ directory = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
381
+ $ directory = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
382
382
'copyStreaming ' ,
383
383
], [
384
384
'foo.bar ' ,
0 commit comments