[Process] Consistently use getProcess() in tests

This commit is contained in:
Nicolas Grekas 2016-04-12 13:52:58 +02:00
parent 8bf49692b6
commit ce13fe7454
1 changed files with 1 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ class ProcessTest extends \PHPUnit_Framework_TestCase
* @dataProvider provideVariousIncrementals
*/
public function testIncrementalOutputDoesNotRequireAnotherCall($stream, $method) {
$process = new Process(self::$phpBin.' -r '.escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\''.$stream.'\', $n, 1); $n++; usleep(1000); }'), null, null, null, null);
$process = $this->getProcess(self::$phpBin.' -r '.escapeshellarg('$n = 0; while ($n < 3) { file_put_contents(\''.$stream.'\', $n, 1); $n++; usleep(1000); }'), null, null, null, null);
$process->start();
$result = '';
$limit = microtime(true) + 3;