@@ -41,7 +41,7 @@ public function testGetPath()
4141 public function testLs ()
4242 {
4343 $ path = '/home/foo/bar ' ;
44- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
44+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
4545
4646 $ filesystem = $ this ->mockAdapter ($ loop );
4747
@@ -62,11 +62,11 @@ public function testLs()
6262 public function testLsStream ()
6363 {
6464 $ path = '/home/foo/bar ' ;
65- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
65+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
6666
6767 $ filesystem = $ this ->mockAdapter ($ loop );
6868
69- $ lsStream = $ this ->getMock ('React\Filesystem\ObjectStream ' );
69+ $ lsStream = $ this ->createMock ('React\Filesystem\ObjectStream ' );
7070
7171 $ filesystem
7272 ->expects ($ this ->once ())
@@ -125,7 +125,7 @@ public function testRemove()
125125 {
126126 $ path = 'foo.bar ' ;
127127 $ filesystem = $ this ->mockAdapter ();
128- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
128+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
129129
130130 $ filesystem
131131 ->expects ($ this ->once ())
@@ -139,11 +139,11 @@ public function testRemove()
139139 public function testSize ()
140140 {
141141 $ path = '/home/foo/bar ' ;
142- $ loop = $ this ->getMock ('React\EventLoop\LoopInterface ' );
142+ $ loop = $ this ->createMock ('React\EventLoop\LoopInterface ' );
143143
144144 $ filesystem = $ this ->mockAdapter ($ loop );
145145
146- $ lsPromise = $ this ->getMock ('React\Promise\PromiseInterface ' , [
146+ $ lsPromise = $ this ->createMock ('React\Promise\PromiseInterface ' , [
147147 'then ' ,
148148 ]);
149149
@@ -156,7 +156,7 @@ public function testSize()
156156 }))
157157 ;
158158
159- $ directory = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
159+ $ directory = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
160160 'ls ' ,
161161 'processSizeContents ' ,
162162 ], [
@@ -175,7 +175,7 @@ public function testSize()
175175 ->expects ($ this ->once ())
176176 ->method ('processSizeContents ' )
177177 ->with ('foo.bar ' , $ this ->isType ('boolean ' ))
178- ->will ($ this ->returnValue ($ this ->getMock ('React\Promise\PromiseInterface ' )))
178+ ->will ($ this ->returnValue ($ this ->createMock ('React\Promise\PromiseInterface ' )))
179179 ;
180180
181181 $ this ->assertInstanceOf ('React\Promise\PromiseInterface ' , $ directory ->size ());
@@ -185,16 +185,16 @@ public function testChmodRecursive()
185185 {
186186 $ filesystem = $ this ->mockAdapter ();
187187
188- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
188+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
189189 'execute ' ,
190190 ], [
191- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
191+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
192192 'foo/bar/ ' ,
193193 Filesystem::createFromAdapter ($ filesystem ),
194194 ]),
195195 ]);
196196
197- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
197+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
198198
199199 $ recursiveInvoker
200200 ->expects ($ this ->once ())
@@ -210,16 +210,16 @@ public function testChownRecursive()
210210 {
211211 $ filesystem = $ this ->mockAdapter ();
212212
213- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
213+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
214214 'execute ' ,
215215 ], [
216- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
216+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
217217 'foo/bar/ ' ,
218218 Filesystem::createFromAdapter ($ filesystem ),
219219 ]),
220220 ]);
221221
222- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
222+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
223223
224224 $ recursiveInvoker
225225 ->expects ($ this ->once ())
@@ -235,16 +235,16 @@ public function testRemoveRecursive()
235235 {
236236 $ filesystem = $ this ->mockAdapter ();
237237
238- $ recursiveInvoker = $ this ->getMock ('React\Filesystem\Node\RecursiveInvoker ' , [
238+ $ recursiveInvoker = $ this ->createMock ('React\Filesystem\Node\RecursiveInvoker ' , [
239239 'execute ' ,
240240 ], [
241- $ this ->getMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
241+ $ this ->createMock ('React\Filesystem\Node\DirectoryInterface ' , [], [
242242 'foo/bar/ ' ,
243243 Filesystem::createFromAdapter ($ filesystem ),
244244 ]),
245245 ]);
246246
247- $ promise = $ this ->getMock ('React\Promise\PromiseInterface ' );
247+ $ promise = $ this ->createMock ('React\Promise\PromiseInterface ' );
248248
249249 $ recursiveInvoker
250250 ->expects ($ this ->once ())
@@ -260,7 +260,7 @@ public function testCopy()
260260 {
261261 $ filesystem = $ this ->mockAdapter ();
262262
263- $ directoryFrom = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
263+ $ directoryFrom = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
264264 'copyStreaming ' ,
265265 ], [
266266 'foo.bar ' ,
@@ -338,7 +338,7 @@ public function testCopyStreamingABC()
338338 ->will ($ this ->returnValue (new FulfilledPromise ()))
339339 ;
340340
341- $ directoryFrom = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
341+ $ directoryFrom = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
342342 'lsStreaming ' ,
343343 ], [
344344 'foo.bar ' ,
@@ -358,7 +358,7 @@ public function testCopyStreamingABC()
358358 $ returnedStream = $ directoryFrom ->copyStreaming ($ directoryTo );
359359 $ this ->assertInstanceOf ('React\Filesystem\ObjectStream ' , $ returnedStream );
360360
361- $ file = $ this ->getMock ('React\Filesystem\Node\File ' , [
361+ $ file = $ this ->createMock ('React\Filesystem\Node\File ' , [
362362 'copyStreaming ' ,
363363 ], [
364364 'foo.bar ' ,
@@ -378,7 +378,7 @@ public function testCopyStreamingABC()
378378 $ file ,
379379 ]);
380380
381- $ directory = $ this ->getMock ('React\Filesystem\Node\Directory ' , [
381+ $ directory = $ this ->createMock ('React\Filesystem\Node\Directory ' , [
382382 'copyStreaming ' ,
383383 ], [
384384 'foo.bar ' ,
0 commit comments