File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments