MediaWiki
1.28.0
|
PHP Unit tests for MemoizedCallable class. More...
Public Member Functions | |
testCallableMemoized () | |
Consecutive calls to the memoized callable with the same arguments should result in just one invocation of the underlying callable. More... | |
testInvokeVariadic () | |
MemoizedCallable::invoke. More... | |
testMemoizedClosure () | |
Closure names should be distinct. More... | |
testNonScalarArguments () | |
non-scalar argument InvalidArgumentException More... | |
testNotCallable () | |
must be an instance of callable InvalidArgumentException More... | |
testReturnValuePassedThrough () | |
The memoized callable should relate inputs to outputs in the same way as the original underlying callable. More... | |
testShortcutMethod () | |
MemoizedCallable::call. More... | |
testTTLMaxMin () | |
Outlier TTL values should be coerced to range 1 - 86400. More... | |
PHP Unit tests for MemoizedCallable class.
Definition at line 27 of file MemoizedCallableTest.php.
MemoizedCallableTest::testCallableMemoized | ( | ) |
Consecutive calls to the memoized callable with the same arguments should result in just one invocation of the underlying callable.
function apc_store/apcu_store
Definition at line 49 of file MemoizedCallableTest.php.
MemoizedCallableTest::testInvokeVariadic | ( | ) |
Definition at line 67 of file MemoizedCallableTest.php.
MemoizedCallableTest::testMemoizedClosure | ( | ) |
Closure names should be distinct.
Definition at line 99 of file MemoizedCallableTest.php.
References MemoizedCallable\invokeArgs().
MemoizedCallableTest::testNonScalarArguments | ( | ) |
non-scalar argument InvalidArgumentException
Definition at line 126 of file MemoizedCallableTest.php.
MemoizedCallableTest::testNotCallable | ( | ) |
must be an instance of callable InvalidArgumentException
Definition at line 135 of file MemoizedCallableTest.php.
MemoizedCallableTest::testReturnValuePassedThrough | ( | ) |
The memoized callable should relate inputs to outputs in the same way as the original underlying callable.
Definition at line 33 of file MemoizedCallableTest.php.
MemoizedCallableTest::testShortcutMethod | ( | ) |
Definition at line 78 of file MemoizedCallableTest.php.
References MemoizedCallable\call().
MemoizedCallableTest::testTTLMaxMin | ( | ) |
Outlier TTL values should be coerced to range 1 - 86400.
Definition at line 88 of file MemoizedCallableTest.php.