3 use Symfony\Component\Console\Input\InputInterface;
4 use Symfony\Component\Console\Output\OutputInterface;
5 use Symfony\Component\Console\Tests\Style\SymfonyStyleWithForcedLineLength;
7 //Ensure questions do not output anything when input is non-interactive
8 return function (InputInterface $input, OutputInterface $output) {
9 $output = new SymfonyStyleWithForcedLineLength($input, $output);
10 $output->title('Title');
11 $output->askHidden('Hidden question');
12 $output->choice('Choice question with default', array('choice1', 'choice2'), 'choice1');
13 $output->confirm('Confirmation with yes default', true);
14 $output->text('Duis aute irure dolor in reprehenderit in voluptate velit esse');