MemoizedCallable: Add test for memoized closure
authorTimo Tijhof <krinklemail@gmail.com>
Wed, 2 Mar 2016 00:47:05 +0000 (00:47 +0000)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 8 Mar 2016 16:42:21 +0000 (16:42 +0000)
commit221829c4c18835502d58bce918ef099c34143592
tree058866647abf44cb122f785f57b93cb96c1b2c05
parentdcf70dfbcd7d58570e42d50368c430bbe67c2f36
MemoizedCallable: Add test for memoized closure

Follows-up da3443bfa2a.

It won't work across different requests due to use of uniqid()
internally (so we may want to use a HashBagOStuff for closure
instead to save memory in APC). But at least assert that it does
and is intended to work.

Change-Id: Id4b42e8717f62f733eee8fcc9a4ab6c0f5c1f2fe
tests/phpunit/includes/libs/MemoizedCallableTest.php