3 use Symfony\Component\Console\Input\InputInterface;
4 use Symfony\Component\Console\Output\OutputInterface;
5 use Symfony\Component\Console\Tests\Style\SymfonyStyleWithForcedLineLength;
6 use Symfony\Component\Console\Helper\TableCell;
8 //Ensure formatting tables when using multiple headers with TableCell
9 return function (InputInterface $input, OutputInterface $output) {
11 array(new TableCell('Main table title', array('colspan' => 3))),
12 array('ISBN', 'Title', 'Author'),
19 new TableCell("Dante Alighieri\nspans multiple rows", array('rowspan' => 2)),
21 array('978-0804169127', 'Divine Comedy'),
24 $output = new SymfonyStyleWithForcedLineLength($input, $output);
25 $output->table($headers, $rows);