wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Yuri Astrakhan 7c75ee3976 Remove duplicate param escaping code
wfEscapeShellArg() can handle multiple params, escaping each.
This patch changes wfShellExec() to call wfEscapeShellArg() directly
instead of doing the gluing itself.

This patch also extends wfEscapeShellArg() to accept an array parameter
optionally instead of as separate args, which is often useful.

Added also unit test cases for single, multiple args, and single array args.

Change-Id: I7a0761cc2ba98c210a9eacadd12da407d933e42a
2015-03-05 17:06:04 +00:00
..
GlobalTest.php Remove unused alias/layer of test abstraction wfShellMaintenanceCmd() 2015-03-03 22:15:52 -08:00
GlobalWithDBTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
README
wfAppendQueryTest.php Add test cases for wfAppendQuery 2014-09-29 22:56:21 +00:00
wfAssembleUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfBaseConvertTest.php wfBaseConvert(): Work around PHP Bug #50175 2014-09-02 16:02:27 -04:00
wfBaseNameTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfBCP47Test.php Each line in a doc block should start with * 2014-07-24 10:08:16 +02:00
wfEscapeShellArgTest.php Remove duplicate param escaping code 2015-03-05 17:06:04 +00:00
wfExpandUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfGetCallerTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfParseUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfRemoveDotSegmentsTest.php Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
wfShellExecTest.php Fix race condition in wfShellExec() 2014-07-21 23:21:23 -07:00
wfShorthandToIntegerTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfThumbIsStandardTest.php Account for HiDPI variants in thumb.php rate limiting 2015-02-04 19:55:44 -08:00
wfTimestampTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfUrlencodeTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00

This directory hold tests for includes/GlobalFunctions.php file
which is a pile of functions.