From 741a8c1184f214bf079933efd30938fc78f9b29c Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 11 Mar 2014 18:38:12 +0100 Subject: [PATCH] [Process] Fix some unit tests that create the process object instead of delegate it to the implementation This is the patch for version 2.4 --- src/Symfony/Component/Process/Tests/AbstractProcessTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Process/Tests/AbstractProcessTest.php b/src/Symfony/Component/Process/Tests/AbstractProcessTest.php index 4e486327b8..9bd0770fba 100644 --- a/src/Symfony/Component/Process/Tests/AbstractProcessTest.php +++ b/src/Symfony/Component/Process/Tests/AbstractProcessTest.php @@ -186,7 +186,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase public function testFlushErrorOutput() { - $p = new Process(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); + $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\'php://stderr\', \'ERROR\'); $n++; }'))); $p->run(); $p->clearErrorOutput(); @@ -214,7 +214,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase public function testFlushOutput() { - $p = new Process(sprintf('php -r %s', escapeshellarg('$n=0;while ($n<3) {echo \' foo \';$n++;}'))); + $p = $this->getProcess(sprintf('php -r %s', escapeshellarg('$n=0;while ($n<3) {echo \' foo \';$n++;}'))); $p->run(); $p->clearOutput();