Skip to content

Commit d644d23

Browse files
authored
Or maybe that's just me
1 parent e9a468b commit d644d23

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

test/CliMenuTest.php

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -511,13 +511,17 @@ public function testAddCustomControlMappings() : void
511511
$first = true;
512512
$this->terminal->expects($this->any())
513513
->method('read')
514-
->willReturn(function() use ($first) {
515-
if ($first) {
516-
$first = false;
517-
return 'c';
518-
}
519-
return 'x';
520-
});
514+
->willReturn(
515+
$this->returnCallback(
516+
function() use ($first) {
517+
if ($first) {
518+
$first = false;
519+
return 'c';
520+
}
521+
return 'x';
522+
}
523+
)
524+
);
521525

522526
$style = $this->getStyle($this->terminal);
523527

0 commit comments

Comments
 (0)