public function AbstractProcessTest::pipesCodeProvider in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/process/Tests/AbstractProcessTest.php \Symfony\Component\Process\Tests\AbstractProcessTest::pipesCodeProvider()
File
- vendor/
symfony/ process/ Tests/ AbstractProcessTest.php, line 1148
Class
- AbstractProcessTest
- @author Robert Schönthal <seroscho@googlemail.com>
Namespace
Symfony\Component\Process\TestsCode
public function pipesCodeProvider() {
$variations = array(
'fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDERR, $in);',
'include \'' . __DIR__ . '/PipeStdinInStdoutStdErrStreamSelect.php\';',
);
if ('\\' === DIRECTORY_SEPARATOR) {
// Avoid XL buffers on Windows because of https://bugs.php.net/bug.php?id=65650
$sizes = array(
1,
2,
4,
8,
);
}
else {
$sizes = array(
1,
16,
64,
1024,
4096,
);
}
$codes = array();
foreach ($sizes as $size) {
foreach ($variations as $code) {
$codes[] = array(
$code,
$size,
);
}
}
return $codes;
}