$tester =
$this->
createCommandTester($debug);
$tester->
execute(['name' => 'ExtensionWithoutConfigTestBundle'
]);
} /**
* @dataProvider provideCompletionSuggestions
*/
public function testComplete(bool
$debug, array
$input, array
$expectedSuggestions) { $application =
$this->
createApplication($debug);
$application->
add(new ConfigDebugCommand());
$tester =
new CommandCompletionTester($application->
get('debug:config'
));
$suggestions =
$tester->
complete($input);
foreach ($expectedSuggestions as $expectedSuggestion) { $this->
assertContains($expectedSuggestion,
$suggestions);
} } public static function provideCompletionSuggestions(): \Generator
{ $name =
['default_config_test', 'extension_without_config_test', 'framework', 'test', 'foo', 'test_dump'
];