@@ -59,27 +59,27 @@ public static function dataEscapeshellcmd()
59
59
{
60
60
return [
61
61
'Command is empty string ' => [
62
- 'text ' => '' ,
62
+ 'command ' => '' ,
63
63
'expected ' => '' ,
64
64
],
65
65
'Command is simple string ' => [
66
- 'text ' => 'csslint ' ,
66
+ 'command ' => 'csslint ' ,
67
67
'expected ' => 'csslint ' ,
68
68
],
69
69
'Command containing characters which PHP escapes ' => [
70
- 'text ' => '&#;`|*?~<>^()[]{}$\,%! ' ,
70
+ 'command ' => '&#;`|*?~<>^()[]{}$\,%! ' ,
71
71
'expected ' => '\&\#\;\`\|\*\?\~\<\>\^\(\)\[\]\{\}\$ \\\\,%! ' ,
72
72
'expectedWin ' => '^&^#^;^`^|^*^?^~^<^>^^^(^)^[^]^{^}^$^\,^%^! ' ,
73
73
],
74
74
// @link https://github.com/squizlabs/PHP_CodeSniffer/pull/3214
75
75
'Command containing spaces, which can cause problems on Windows ' => [
76
- 'text ' => 'C:\Program Files\nodejs\csslint.cmd ' ,
76
+ 'command ' => 'C:\Program Files\nodejs\csslint.cmd ' ,
77
77
'expected ' => 'C: \\\\Program Files \\\\nodejs \\\\csslint.cmd ' ,
78
78
'expectedWin ' => 'C:^\Program^ Files^\nodejs^\csslint.cmd ' ,
79
79
],
80
80
// @link https://github.com/php/doc-en/pull/511
81
81
'Command containing spaces with additional arguments ' => [
82
- 'text ' => 'php -f ./~home/path to/file.php ' ,
82
+ 'command ' => 'php -f ./~home/path to/file.php ' ,
83
83
'expected ' => 'php -f ./\~home/path to/file.php ' ,
84
84
'expectedWin ' => 'php^ -f^ ./^~home/path^ to/file.php ' ,
85
85
],
0 commit comments