File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -419,6 +419,8 @@ private function createABufferedOutputMock()
419
419
420
420
foreach ($ this ->test ->expectedOutputSubstrings as $ i => $ text ) {
421
421
$ mock ->shouldReceive ('doWrite ' )
422
+ ->atLeast ()
423
+ ->times (0 )
422
424
->withArgs (fn ($ output ) => str_contains ($ output , $ text ))
423
425
->andReturnUsing (function () use ($ i ) {
424
426
unset($ this ->test ->expectedOutputSubstrings [$ i ]);
@@ -427,6 +429,8 @@ private function createABufferedOutputMock()
427
429
428
430
foreach ($ this ->test ->unexpectedOutput as $ output => $ displayed ) {
429
431
$ mock ->shouldReceive ('doWrite ' )
432
+ ->atLeast ()
433
+ ->times (0 )
430
434
->ordered ()
431
435
->with ($ output , Mockery::any ())
432
436
->andReturnUsing (function () use ($ output ) {
@@ -436,6 +440,8 @@ private function createABufferedOutputMock()
436
440
437
441
foreach ($ this ->test ->unexpectedOutputSubstrings as $ text => $ displayed ) {
438
442
$ mock ->shouldReceive ('doWrite ' )
443
+ ->atLeast ()
444
+ ->times (0 )
439
445
->withArgs (fn ($ output ) => str_contains ($ output , $ text ))
440
446
->andReturnUsing (function () use ($ text ) {
441
447
$ this ->test ->unexpectedOutputSubstrings [$ text ] = true ;
You can’t perform that action at this time.
0 commit comments