wiki.techinc.nl/tests/phpunit/includes/libs
Ori Livneh da3443bfa2 Add MemoizedCallable for APC-backed function memoization
Add a simple class to `libs/` for memoizing functions by caching return values
in APC. I decided not to make this an external library just yet because I see
this as potentially a part of a larger functional programming library.

Doesn't use APCBagOStuff for two reasons: (1) avoid dependency on MediaWiki
code; (2) ability to pass third &$success parameter to apc_store, to
distinguish between cache misses and cached false values.

Use this in ResourceLoaderFileModule to cache CSSMin::remap.

Change-Id: I00a47983a2583655d4631ecc9c6ba17597e36b5f
2015-10-06 23:35:03 +00:00
..
composer Fix remaining Generic.Files.LineLength failures 2015-10-03 17:23:07 +00:00
ArrayUtilsTest.php Fix whitespace issues around parentheses 2015-06-16 22:14:02 +03:00
CSSMinTest.php Fix remaining Generic.Files.LineLength failures 2015-10-03 17:23:07 +00:00
DeferredStringifierTest.php
GenericArrayObjectTest.php
HashRingTest.php
IEUrlExtensionTest.php IEUrlExtension: Add tests for the main use case the lib exists for 2015-08-28 13:30:31 +02:00
JavaScriptMinifierTest.php Only convert boolean true/false to !0/!1 2015-08-15 14:13:59 -07:00
MemoizedCallableTest.php Add MemoizedCallable for APC-backed function memoization 2015-10-06 23:35:03 +00:00
MWMessagePackTest.php
ObjectFactoryTest.php Rename ObjectFactoryTest_Fixture to camel case name 2015-10-03 21:29:17 +02:00
ProcessCacheLRUTest.php
RunningStatTest.php Re-enable MediaWiki.WhiteSpace.SpaceAfterControlStructure.Incorrect 2015-09-26 18:32:32 +01:00
SamplingStatsdClientTest.php Sample StatsD messages when instructed 2015-08-03 22:09:18 +00:00
StringUtilsTest.php
XhprofTest.php Fix whitespace issues around parentheses 2015-06-16 22:14:02 +03:00
XmlTypeCheckTest.php Fix remaining Generic.Files.LineLength failures 2015-10-03 17:23:07 +00:00