listing() public method

Formats a list.
public listing ( array $elements )
$elements array
Beispiel #1
0
 public function testListing()
 {
     $this->command->setCode(function (InputInterface $input, OutputInterface $output) use(&$isDecorated) {
         $io = new ConsoleIO($input, $output);
         $io->listing(['element 1']);
     });
     $this->tester->execute([], ['interactive' => false, 'decorated' => false]);
     $this->assertRegExp("/\\* element 1/", $this->tester->getDisplay(true));
 }