You are here

public function ProcessHelperTest::testVariousProcessRuns in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Tests/Helper/ProcessHelperTest.php \Symfony\Component\Console\Tests\Helper\ProcessHelperTest::testVariousProcessRuns()

@dataProvider provideCommandsAndOutput

File

vendor/symfony/console/Tests/Helper/ProcessHelperTest.php, line 25

Class

ProcessHelperTest

Namespace

Symfony\Component\Console\Tests\Helper

Code

public function testVariousProcessRuns($expected, $cmd, $verbosity, $error) {
  $helper = new ProcessHelper();
  $helper
    ->setHelperSet(new HelperSet(array(
    new DebugFormatterHelper(),
  )));
  $output = $this
    ->getOutputStream($verbosity);
  $helper
    ->run($output, $cmd, $error);
  $this
    ->assertEquals($expected, $this
    ->getOutput($output));
}