@@ -23,8 +23,8 @@ public function testCtorDefaultArgs()
23
23
24
24
public function testCtorArgsWillBeReturnedByGetters ()
25
25
{
26
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
27
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
26
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
27
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
28
28
29
29
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
30
30
$ readline = new Readline ($ input , $ output );
@@ -38,8 +38,8 @@ public function testCtorArgsWillBeReturnedByGetters()
38
38
39
39
public function testWriteEmptyStringWillNotWriteToOutput ()
40
40
{
41
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
42
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
41
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
42
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
43
43
44
44
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
45
45
$ readline = new Readline ($ input , $ output );
@@ -55,8 +55,8 @@ public function testWriteEmptyStringWillNotWriteToOutput()
55
55
56
56
public function testWriteWillClearReadlineWriteOutputAndRestoreReadline ()
57
57
{
58
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
59
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
58
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
59
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
60
60
61
61
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
62
62
$ readline = new Readline ($ input , $ output );
@@ -77,8 +77,8 @@ public function testWriteWillClearReadlineWriteOutputAndRestoreReadline()
77
77
78
78
public function testWriteAgainWillMoveToPreviousLineWriteOutputAndRestoreReadlinePosition ()
79
79
{
80
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
81
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
80
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
81
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
82
82
83
83
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
84
84
$ readline = new Readline ($ input , $ output );
@@ -101,8 +101,8 @@ public function testWriteAgainWillMoveToPreviousLineWriteOutputAndRestoreReadlin
101
101
102
102
public function testWriteAgainWithBackspaceWillMoveToPreviousLineWriteOutputAndRestoreReadlinePosition ()
103
103
{
104
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
105
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
104
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
105
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
106
106
107
107
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
108
108
$ readline = new Readline ($ input , $ output );
@@ -125,8 +125,8 @@ public function testWriteAgainWithBackspaceWillMoveToPreviousLineWriteOutputAndR
125
125
126
126
public function testWriteAgainWithNewlinesWillClearReadlineMoveToPreviousLineWriteOutputAndRestoreReadline ()
127
127
{
128
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
129
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
128
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
129
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
130
130
131
131
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
132
132
$ readline = new Readline ($ input , $ output );
@@ -149,8 +149,8 @@ public function testWriteAgainWithNewlinesWillClearReadlineMoveToPreviousLineWri
149
149
150
150
public function testWriteAfterReadlineInputWillClearReadlineWriteOutputAndRestoreReadline ()
151
151
{
152
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
153
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
152
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
153
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
154
154
155
155
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
156
156
$ readline = new Readline ($ input , $ output );
@@ -175,8 +175,8 @@ public function testWriteAfterReadlineInputWillClearReadlineWriteOutputAndRestor
175
175
176
176
public function testOverwriteWillClearReadlineMoveToPreviousLineWriteOutputAndRestoreReadline ()
177
177
{
178
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
179
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
178
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
179
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
180
180
181
181
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
182
182
$ readline = new Readline ($ input , $ output );
@@ -199,8 +199,8 @@ public function testOverwriteWillClearReadlineMoveToPreviousLineWriteOutputAndRe
199
199
200
200
public function testOverwriteAfterNewlineWillClearReadlineAndWriteOutputAndRestoreReadline ()
201
201
{
202
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
203
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
202
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
203
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
204
204
205
205
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
206
206
$ readline = new Readline ($ input , $ output );
@@ -223,8 +223,8 @@ public function testOverwriteAfterNewlineWillClearReadlineAndWriteOutputAndResto
223
223
224
224
public function testWriteLineWillClearReadlineWriteOutputAndRestoreReadline ()
225
225
{
226
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
227
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
226
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
227
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
228
228
229
229
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
230
230
$ readline = new Readline ($ input , $ output );
@@ -245,8 +245,8 @@ public function testWriteLineWillClearReadlineWriteOutputAndRestoreReadline()
245
245
246
246
public function testWriteTwoLinesWillClearReadlineWriteOutputAndRestoreReadline ()
247
247
{
248
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
249
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
248
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
249
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
250
250
251
251
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
252
252
$ readline = new Readline ($ input , $ output );
@@ -268,8 +268,8 @@ public function testWriteTwoLinesWillClearReadlineWriteOutputAndRestoreReadline(
268
268
269
269
public function testPauseWillBeForwardedToInput ()
270
270
{
271
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
272
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
271
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
272
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
273
273
274
274
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
275
275
$ readline = new Readline ($ input , $ output );
@@ -283,8 +283,8 @@ public function testPauseWillBeForwardedToInput()
283
283
284
284
public function testResumeWillBeForwardedToInput ()
285
285
{
286
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
287
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
286
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
287
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
288
288
289
289
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
290
290
$ readline = new Readline ($ input , $ output );
@@ -298,8 +298,8 @@ public function testResumeWillBeForwardedToInput()
298
298
299
299
public function testReadableWillBeForwardedToInput ()
300
300
{
301
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
302
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
301
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
302
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
303
303
304
304
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
305
305
$ readline = new Readline ($ input , $ output );
@@ -313,15 +313,15 @@ public function testReadableWillBeForwardedToInput()
313
313
314
314
public function testPipeWillReturnDestStream ()
315
315
{
316
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
317
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
316
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
317
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
318
318
319
319
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
320
320
$ readline = new Readline ($ input , $ output );
321
321
322
322
$ stdio = new Stdio ($ this ->loop , $ input , $ output , $ readline );
323
323
324
- $ dest = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
324
+ $ dest = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
325
325
326
326
$ ret = $ stdio ->pipe ($ dest );
327
327
@@ -330,8 +330,8 @@ public function testPipeWillReturnDestStream()
330
330
331
331
public function testWritableWillBeForwardedToOutput ()
332
332
{
333
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
334
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
333
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
334
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
335
335
336
336
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
337
337
$ readline = new Readline ($ input , $ output );
@@ -345,8 +345,8 @@ public function testWritableWillBeForwardedToOutput()
345
345
346
346
public function testCloseWillCloseInputAndOutput ()
347
347
{
348
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
349
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
348
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
349
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
350
350
351
351
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
352
352
$ readline = new Readline ($ input , $ output );
@@ -361,8 +361,8 @@ public function testCloseWillCloseInputAndOutput()
361
361
362
362
public function testCloseTwiceWillCloseInputAndOutputOnlyOnce ()
363
363
{
364
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
365
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
364
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
365
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
366
366
367
367
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
368
368
$ readline = new Readline ($ input , $ output );
@@ -378,8 +378,8 @@ public function testCloseTwiceWillCloseInputAndOutputOnlyOnce()
378
378
379
379
public function testEndWillCloseInputAndEndOutput ()
380
380
{
381
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
382
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
381
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
382
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
383
383
384
384
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
385
385
$ readline = new Readline ($ input , $ output );
@@ -394,8 +394,8 @@ public function testEndWillCloseInputAndEndOutput()
394
394
395
395
public function testEndWithDataWillWriteAndCloseInputAndEndOutput ()
396
396
{
397
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
398
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
397
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
398
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
399
399
400
400
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
401
401
$ readline = new Readline ($ input , $ output );
@@ -412,8 +412,8 @@ public function testEndWithDataWillWriteAndCloseInputAndEndOutput()
412
412
413
413
public function testWriteAfterEndWillNotWriteToOutput ()
414
414
{
415
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
416
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
415
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
416
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
417
417
418
418
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
419
419
$ readline = new Readline ($ input , $ output );
@@ -428,8 +428,8 @@ public function testWriteAfterEndWillNotWriteToOutput()
428
428
429
429
public function testEndTwiceWillCloseInputAndEndOutputOnce ()
430
430
{
431
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
432
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
431
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
432
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
433
433
434
434
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
435
435
$ readline = new Readline ($ input , $ output );
@@ -445,8 +445,8 @@ public function testEndTwiceWillCloseInputAndEndOutputOnce()
445
445
446
446
public function testDataEventWillBeForwarded ()
447
447
{
448
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
449
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
448
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
449
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
450
450
451
451
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
452
452
$ readline = new Readline ($ input , $ output );
@@ -462,7 +462,7 @@ public function testDataEventWillBeForwarded()
462
462
public function testEndEventWillBeForwarded ()
463
463
{
464
464
$ input = new ReadableStream ();
465
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
465
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
466
466
467
467
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
468
468
$ readline = new Readline ($ input , $ output );
@@ -477,7 +477,7 @@ public function testEndEventWillBeForwarded()
477
477
public function testErrorEventFromInputWillBeForwarded ()
478
478
{
479
479
$ input = new ReadableStream ();
480
- $ output = $ this ->getMock ('React\Stream\WritableStreamInterface ' );
480
+ $ output = $ this ->getMockBuilder ('React\Stream\WritableStreamInterface ' )-> getMock ( );
481
481
482
482
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
483
483
$ readline = new Readline ($ input , $ output );
@@ -491,7 +491,7 @@ public function testErrorEventFromInputWillBeForwarded()
491
491
492
492
public function testErrorEventFromOutputWillBeForwarded ()
493
493
{
494
- $ input = $ this ->getMock ('React\Stream\ReadableStreamInterface ' );
494
+ $ input = $ this ->getMockBuilder ('React\Stream\ReadableStreamInterface ' )-> getMock ( );
495
495
$ output = new WritableStream ();
496
496
497
497
//$readline = $this->getMockBuilder('Clue\React\Stdio\Readline')->disableOriginalConstructor()->getMock();
0 commit comments