public function ProcessHelperTest::testVariousProcessRuns in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\Console\Tests\HelperCode
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));
}