Example #1
0
 /**
  * Prepare ExtendedConsoleEvent that could be passed to onCommandRunTestsInit().
  *
  * @param Command $command
  * @param InputInterface $input
  * @param OutputInterface $output
  * @return ExtendedConsoleEvent
  */
 protected function prepareExtendedConsoleEvent($command, $input, $output)
 {
     // Trigger event to add the xdebug option to the command and bind the definition to the input
     $this->listener->onCommandConfigure(new BasicConsoleEvent($command));
     $input->bind($command->getDefinition());
     $event = new ExtendedConsoleEvent($command, $input, $output);
     return $event;
 }