You are here

public function AbstractProcessTest::testChainedCommandsOutput in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::testChainedCommandsOutput()

@dataProvider chainedCommandsOutputProvider

File

vendor/symfony/process/Tests/AbstractProcessTest.php, line 282

Class

AbstractProcessTest
@author Robert Schönthal <seroscho@googlemail.com>

Namespace

Symfony\Component\Process\Tests

Code

public function testChainedCommandsOutput($expected, $operator, $input) {
  $process = $this
    ->getProcess(sprintf('echo %s %s echo %s', $input, $operator, $input));
  $process
    ->run();
  $this
    ->assertEquals($expected, $process
    ->getOutput());
}