wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Platonides 2e506c4809 PHP >= 5.4.0 started taking advantage of $limit optimization of wfDebugBacktrace(),
which we weren't treating right.

* $limit in wfDebugBacktrace() is the number of returned frames,
we thus need to take into account the wfDebugBacktrace() frame, which
is sliced from debug_backtrace().

* wfGetCaller() needs to add a level for itself.

* MWDebug::warning() was logging itself as the warning issuer,
which is useless (the call a few lines before was right, though)
MWDebugTest.php changed accordingly.

* Removed double call to wfGetCaller( $callerOffset + 1 )

* Documented the meaning of wfGetCaller() parameter

* Added unit test

Change-Id: Ief50f4c810bad8b03bb2bf9dc6d945d9acb29851
2012-05-31 17:32:33 +02:00
..
GlobalTest.php MockOutputPage class in its own file 2012-04-13 12:47:19 +02:00
GlobalWithDBTest.php FU r100915: split out GlobalWithDBTest (tests which need the DB) 2011-10-27 20:54:27 +00:00
README
wfAssembleUrlTest.php Add wfAssembleUrl and unit tests. This is the next step towards fixing 2011-11-15 17:38:20 +00:00
wfBaseNameTest.php Break wfBCP47, wfBaseName and wfTimestamp tests 2012-01-09 16:30:32 +00:00
wfBCP47Test.php Break wfBCP47, wfBaseName and wfTimestamp tests 2012-01-09 16:30:32 +00:00
wfExpandUrlTest.php "else if" to "elseif" 2011-11-25 00:15:27 +00:00
wfGetCallerTest.php PHP >= 5.4.0 started taking advantage of $limit optimization of wfDebugBacktrace(), 2012-05-31 17:32:33 +02:00
wfRemoveDotSegmentsTest.php Follow-up r102587. Add details to comments and add a couple more tests. 2011-11-10 18:02:38 +00:00
wfShorthandToIntegerTest.php Move tests that have likely never been executed. Now they will be executed. 2011-11-09 23:11:52 +00:00
wfTimestampTest.php Break wfBCP47, wfBaseName and wfTimestamp tests 2012-01-09 16:30:32 +00:00
wfUrlencodeTest.php Make wfUrlEncode(null) reset the static. Two skipped tests work now. 2011-07-23 20:14:12 +00:00

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