28 if (
'\\' === DIRECTORY_SEPARATOR) {
30 array(
'"\"php\" \"-v\""',
'"php" "-v"'),
31 array(
'"foo bar"',
'foo bar'),
32 array(
'^%"path"^%',
'%path%'),
33 array(
'"<|>\\" \\"\'f"',
'<|>" "\'f'),
35 array(
'"with\trailingbs\\\\"',
'with\trailingbs\\'),
40 array(
"'\"php\" \"-v\"'",
'"php" "-v"'),
41 array(
"'foo bar'",
'foo bar'),
42 array(
"'%path%'",
'%path%'),
43 array(
"'<|>\" \"'\\''f'",
'<|>" "\'f'),
45 array(
"'with\\trailingbs\\'",
'with\trailingbs\\'),
An exception for terminatinating execution or to throw for unit testing.
ProcessUtils is a bunch of utility methods.
static escapeArgument($argument)
Escapes a string to be used as a shell argument.
testEscapeArgument($result, $argument)
@dataProvider dataArguments