You are here

public function ProcessUtilsTest::dataArguments in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/ProcessUtilsTest.php \Symfony\Component\Process\Tests\ProcessUtilsTest::dataArguments()

File

vendor/symfony/process/Tests/ProcessUtilsTest.php, line 26

Class

ProcessUtilsTest

Namespace

Symfony\Component\Process\Tests

Code

public function dataArguments() {
  if ('\\' === DIRECTORY_SEPARATOR) {
    return array(
      array(
        '"\\"php\\" \\"-v\\""',
        '"php" "-v"',
      ),
      array(
        '"foo bar"',
        'foo bar',
      ),
      array(
        '^%"path"^%',
        '%path%',
      ),
      array(
        '"<|>\\" \\"\'f"',
        '<|>" "\'f',
      ),
      array(
        '""',
        '',
      ),
      array(
        '"with\\trailingbs\\\\"',
        'with\\trailingbs\\',
      ),
    );
  }
  return array(
    array(
      "'\"php\" \"-v\"'",
      '"php" "-v"',
    ),
    array(
      "'foo bar'",
      'foo bar',
    ),
    array(
      "'%path%'",
      '%path%',
    ),
    array(
      "'<|>\" \"'\\''f'",
      '<|>" "\'f',
    ),
    array(
      "''",
      '',
    ),
    array(
      "'with\\trailingbs\\'",
      'with\\trailingbs\\',
    ),
  );
}