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 352d2e1 commit df04578Copy full SHA for df04578
test/CliMenuTest.php
@@ -500,7 +500,9 @@ public function testAddCustomControlMappingsThrowsExceptionWhenAttemptingToOverw
500
$menu = new CliMenu('PHP School FTW', []);
501
$menu->addCustomControlMappings([
502
'c' => function () {
503
- },
+ }
504
+ ]);
505
+ $menu->addCustomControlMappings([
506
507
}
508
]);
@@ -511,13 +513,7 @@ public function testAddCustomControlMappings() : void
511
513
$first = true;
512
514
$this->terminal->expects($this->any())
515
->method('read')
- ->will(
- $this->returnCallback(
516
- function () use (&$first) {
517
- return $first ? 'c' : 'x';
518
- }
519
- )
520
- );
+ ->willReturn('c', 'x');
521
522
$style = $this->getStyle($this->terminal);
523
0 commit comments