Skip to content

Commit 6c97ce4

Browse files
committed
Reword
1 parent 900b38f commit 6c97ce4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

console/input.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,11 +396,11 @@ to help you unit test the completion logic::
396396
$suggestions = $tester->complete(['']);
397397
$this->assertSame(['Fabien', 'Fabrice', 'Wouter'], $suggestions);
398398

399-
// complete the input with "Fa" as input
400-
// note that the list does not reduce because the completion tester doesn't run any shell,
401-
// it only tests the PHP part of the completion logic, so it should always include all values
399+
// If you filter the values inside your own code (not recommended, unless you
400+
// need to improve performance of e.g. a database query), you can test this
401+
// by passing the user input
402402
$suggestions = $tester->complete(['Fa']);
403-
$this->assertSame(['Fabien', 'Fabrice', 'Wouter'], $suggestions);
403+
$this->assertSame(['Fabien', 'Fabrice'], $suggestions);
404404
}
405405
}
406406

0 commit comments

Comments
 (0)