Example #1
0
 public function testRunAllVerbose()
 {
     $helper = new ProcessHelper();
     $helper->setHelperSet(new HelperSet([new DebugFormatterHelper()]));
     /** @var Process[] $processes */
     $processes = [new Process('php -r "echo 42;"'), new Process('php -r "echo 42;"')];
     $output = new BufferedOutput(OutputInterface::VERBOSITY_VERY_VERBOSE);
     $execute = new Execute($output, $helper);
     $execute->runAll($processes);
     foreach ($processes as $process) {
         $this->assertTrue($process->isSuccessful());
     }
     $this->assertNotEmpty($output->fetch());
 }