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 ecbb126 commit 67b4273Copy full SHA for 67b4273
tests/ReadlineTest.php
@@ -504,6 +504,16 @@ public function testAutocompleteGetterReturnsSameFromSetter()
504
$this->assertSame($autocomplete, $this->readline->getAutocomplete());
505
}
506
507
+ public function testKeysTabInvokesAutocompleteHandler()
508
+ {
509
+ $autocomplete = $this->getMock('Clue\React\Stdio\Readline\Autocomplete');
510
+ $autocomplete->expects($this->once())->method('go')->with($this->equalTo($this->readline));
511
+
512
+ $this->readline->setAutocomplete($autocomplete);
513
514
+ $this->readline->onKeyTab();
515
+ }
516
517
public function testEmitEmptyInputOnEnter()
518
{
519
$this->readline->on('data', $this->expectCallableOnceWith(''));
0 commit comments