wiki.techinc.nl/tests/phpunit/includes/shell
Max Semenik 36009e3ca7 Shell: skip null parameters
Right now they're treated as empty strings, however
this doesn't allow skipping parameters in the middle like
 $params = [
     'foo',
     $x ? '--bar' : null,
     '--baz',
 ];

In some cases this matters, e.g. `ls` works while `ls ''` doesn't.

Also, fix spacing problems the new tests uncovered:
* Extra space when using params()
* Missing space when combining params() and unsafeParams()

Change-Id: Icb29d4c48ae7f92fb5635e3865346c98f47abb01
2017-11-29 12:38:35 -08:00
..
CommandFactoryTest.php shell: Optionally restrict commands' access with firejail 2017-11-28 00:06:40 +00:00
CommandTest.php Shell: skip null parameters 2017-11-29 12:38:35 -08:00
FirejailCommandTest.php shell: Optionally restrict commands' access with firejail 2017-11-28 00:06:40 +00:00
ShellTest.php Shell: skip null parameters 2017-11-29 12:38:35 -08:00