public function ProcessTest::testProcessResponses

tests results from sub processes

@dataProvider responsesCodeProvider

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/ProcessTest.php, line 52

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function testProcessResponses($expected, $getter, $code) {
  $p = new Process(sprintf('php -r %s', escapeshellarg($code)));
  $p
    ->run();
  $this
    ->assertSame($expected, $p
    ->{$getter}());
}