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)); }