public function AbstractProcessTest::pipesCodeProvider

File

drupal/core/vendor/symfony/process/Symfony/Component/Process/Tests/AbstractProcessTest.php, line 524

Class

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

Namespace

Symfony\Component\Process\Tests

Code

public function pipesCodeProvider() {
  $variations = array(
    'fwrite(STDOUT, $in = file_get_contents(\'php://stdin\')); fwrite(STDERR, $in);',
    'include \'' . __DIR__ . '/ProcessTestHelper.php\';',
  );
  $codes = array();
  foreach (array(
    1,
    16,
    64,
    1024,
    4096,
  ) as $size) {
    foreach ($variations as $code) {
      $codes[] = array(
        $code,
        $size,
      );
    }
  }
  return $codes;
}