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 DeferredStringifier: Clean up comments and indentation in tests 2015-01-29 12:10:08 -08:00
GenericArrayObjectTest.php tests: Clean up file headers 2015-04-01 00:17:12 +01:00
HashRingTest.php Convert most libs/ tests to use PHPUnit_Framework_TestCase 2014-12-29 20:53:24 -08:00
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 Convert most libs/ tests to use PHPUnit_Framework_TestCase 2014-12-29 20:53:24 -08:00
ObjectFactoryTest.php Rename ObjectFactoryTest_Fixture to camel case name 2015-10-03 21:29:17 +02:00
ProcessCacheLRUTest.php Start using the Assert helper class for checking parameters. 2015-05-11 17:54:07 +00:00
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 StringUtils: throw InvalidArgumentException and move into libs/ 2015-01-29 10:30:57 -08:00
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