You are here

public function AbstractProcessTest::testProcessResponses in Zircon Profile 8.0

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

tests results from sub processes.

@dataProvider responsesCodeProvider

File

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

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testProcessResponses($expected, $getter, $code) {
  $p = $this
    ->getProcess(sprintf('%s -r %s', self::$phpBin, escapeshellarg($code)));
  $p
    ->run();
  $this
    ->assertSame($expected, $p
    ->{$getter}());
}