@@ -55,7 +55,7 @@ public function testWriteDoesEmitDrainEventAfterHandlerResolves()
55
55
$ through ->write ('hello ' );
56
56
57
57
$ through ->on ('drain ' , $ this ->expectCallableOnce ());
58
- $ deferred ->resolve ();
58
+ $ deferred ->resolve (null );
59
59
}
60
60
61
61
public function testResumeAfterWriteAfterPauseEmitsDrainEventIfHandlerResolves ()
@@ -167,7 +167,7 @@ public function testWriteAfterWriteDoesInvokeHandlerAgainAfterPreviousHandlerRes
167
167
$ through ->write ('hello ' );
168
168
$ through ->write ('world ' );
169
169
170
- $ deferred ->resolve ();
170
+ $ deferred ->resolve (null );
171
171
172
172
$ this ->assertEquals (array ('hello ' , 'world ' ), $ pending );
173
173
}
@@ -362,7 +362,7 @@ public function testEndWithDataAfterWriteAfterWriteDoesInvokeHandlerAgainInCorre
362
362
$ through ->write ('hello ' );
363
363
$ through ->write ('world ' );
364
364
$ through ->end ('again ' );
365
- $ deferred ->resolve ();
365
+ $ deferred ->resolve (null );
366
366
367
367
$ this ->assertEquals (array ('hello ' , 'world ' , 'again ' ), $ pending );
368
368
}
@@ -377,7 +377,7 @@ public function testEndDoesNotEmitDrainEventAfterHandlerResolves()
377
377
$ through ->end ('hello ' );
378
378
379
379
$ through ->on ('drain ' , $ this ->expectCallableNever ());
380
- $ deferred ->resolve ();
380
+ $ deferred ->resolve (null );
381
381
}
382
382
383
383
public function testEndAfterCloseIsNoop ()
0 commit comments