@@ -125,57 +125,6 @@ public function provideCompleteCommandInputDefinitionInputs()
125125 yield 'custom-aliased ' => [['bin/console ' , 'ahoy ' ], ['Fabien ' , 'Robin ' , 'Wouter ' ]];
126126 }
127127
128- /**
129- * @dataProvider provideZshCompleteCommandNameInputs
130- */
131- public function testZshCompleteCommandName (array $ input , array $ suggestions )
132- {
133- $ this ->execute (['--current ' => '1 ' , '--input ' => $ input , '--shell ' => 'zsh ' ]);
134- $ this ->assertEquals (implode ("\n" , $ suggestions ).\PHP_EOL , $ this ->tester ->getDisplay ());
135- }
136-
137- public function provideZshCompleteCommandNameInputs ()
138- {
139- yield 'empty ' => [['bin/console ' ], [
140- 'help ' ."\t" .'Display help for a command ' ,
141- 'list ' ."\t" .'List commands ' ,
142- 'completion ' ."\t" .'Dump the shell completion script ' ,
143- 'hello ' ."\t" .'Hello test command ' ,
144- 'ahoy ' ."\t" .'Hello test command ' ,
145- ]];
146- yield 'partial ' => [['bin/console ' , 'he ' ], [
147- 'help ' ."\t" .'Display help for a command ' ,
148- 'list ' ."\t" .'List commands ' ,
149- 'completion ' ."\t" .'Dump the shell completion script ' ,
150- 'hello ' ."\t" .'Hello test command ' ,
151- 'ahoy ' ."\t" .'Hello test command ' ,
152- ]];
153- yield 'complete-shortcut-name ' => [['bin/console ' , 'hell ' ], ['hello ' , 'ahoy ' ]];
154- }
155-
156- /**
157- * @dataProvider provideZshCompleteCommandInputDefinitionInputs
158- */
159- public function testZshCompleteCommandInputDefinition (array $ input , array $ suggestions )
160- {
161- $ this ->execute (['--current ' => '2 ' , '--input ' => $ input , '--shell ' => 'zsh ' ]);
162- $ this ->assertEquals (implode ("\n" , $ suggestions ).\PHP_EOL , $ this ->tester ->getDisplay ());
163- }
164-
165- public function provideZshCompleteCommandInputDefinitionInputs ()
166- {
167- yield 'definition ' => [['bin/console ' , 'hello ' , '- ' ], [
168- '--help ' ."\t" .'Display help for the given command. When no command is given display help for the list command ' ,
169- '--quiet ' ."\t" .'Do not output any message ' ,
170- '--verbose ' ."\t" .'Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug ' ,
171- '--version ' ."\t" .'Display this application version ' ,
172- '--ansi ' ."\t" .'Force (or disable --no-ansi) ANSI output ' ,
173- '--no-ansi ' ."\t" .'Force (or disable --no-ansi) ANSI output ' ,
174- '--no-interaction ' ."\t" .'Do not ask any interactive question ' ,
175- ]];
176- yield 'custom ' => [['bin/console ' , 'hello ' ], ['Fabien ' , 'Robin ' , 'Wouter ' ]];
177- }
178-
179128 private function execute (array $ input )
180129 {
181130 // run in verbose mode to assert exceptions
0 commit comments