We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a468b commit d644d23Copy full SHA for d644d23
test/CliMenuTest.php
@@ -511,13 +511,17 @@ public function testAddCustomControlMappings() : void
511
$first = true;
512
$this->terminal->expects($this->any())
513
->method('read')
514
- ->willReturn(function() use ($first) {
515
- if ($first) {
516
- $first = false;
517
- return 'c';
518
- }
519
- return 'x';
520
- });
+ ->willReturn(
+ $this->returnCallback(
+ function() use ($first) {
+ if ($first) {
+ $first = false;
+ return 'c';
+ }
521
+ return 'x';
522
523
+ )
524
+ );
525
526
$style = $this->getStyle($this->terminal);
527
0 commit comments