[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
This commit is contained in:
parent
d16c0724e0
commit
741a8c1184
@ -186,7 +186,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testFlushErrorOutput()
|
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->run();
|
||||||
$p->clearErrorOutput();
|
$p->clearErrorOutput();
|
||||||
@ -214,7 +214,7 @@ abstract class AbstractProcessTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
public function testFlushOutput()
|
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->run();
|
||||||
$p->clearOutput();
|
$p->clearOutput();
|
||||||
|
Reference in New Issue
Block a user