Browse Source

Cleanup CompletionCommand.

ADmad 4 years ago
parent
commit
e33aa211f8

+ 1 - 3
src/Command/CompletionCommand.php

@@ -56,7 +56,6 @@ class CompletionCommand extends Command implements CommandCollectionAwareInterfa
             'commands' => 'Output a list of available commands',
             'subcommands' => 'Output a list of available sub-commands for a command',
             'options' => 'Output a list of available options for a command and possible subcommand.',
-            'fuzzy' => 'Does nothing. Only for backwards compatibility',
         ];
         $modeHelp = '';
         foreach ($modes as $key => $help) {
@@ -101,8 +100,7 @@ class CompletionCommand extends Command implements CommandCollectionAwareInterfa
             'commands' => $this->getCommands($args, $io),
             'subcommands' => $this->getSubcommands($args, $io),
             'options' => $this->getOptions($args, $io),
-            'fuzzy' => static::CODE_SUCCESS,
-            default => $io->err('Invalid mode chosen.')
+            default => static::CODE_ERROR,
         };
     }
 

+ 0 - 9
tests/TestCase/Command/CompletionCommandTest.php

@@ -288,15 +288,6 @@ class CompletionCommandTest extends TestCase
     }
 
     /**
-     * test that fuzzy returns nothing
-     */
-    public function testFuzzy(): void
-    {
-        $this->exec('completion fuzzy');
-        $this->assertOutputEmpty();
-    }
-
-    /**
      * test that help returns content
      */
     public function testHelp(): void