MediaWiki  master
WANObjectCacheTest Class Reference

WANObjectCache::wrap WANObjectCache::unwrap WANObjectCache::worthRefreshExpiring WANObjectCache::worthRefreshPopular WANObjectCache::isValid WANObjectCache::getWarmupKeyMisses WANObjectCache::prefixCacheKeys WANObjectCache::getProcessCache WANObjectCache::getNonProcessCachedMultiKeys WANObjectCache::getRawKeysForWarmup WANObjectCache::getInterimValue WANObjectCache::setInterimValue. More...

Inheritance diagram for WANObjectCacheTest:
Collaboration diagram for WANObjectCacheTest:

Public Member Functions

 getBusyValues_Provider ()
 
 testAdaptiveTTL ( $ago, $maxTTL, $minTTL, $factor, $adaptiveTTL)
 provideAdaptiveTTL WANObjectCache::adaptiveTTL() More...
 
 testBusyValueBasic ()
 WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() More...
 
 testBusyValueTypes ( $busyValue, $expected)
 WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() getBusyValues_Provider. More...
 
 testCheckKeyInitHoldoff ()
 WANObjectCache::get() WANObjectCache::processCheckKeys() More...
 
 testDelete ()
 WANObjectCache::delete WANObjectCache::relayDelete WANObjectCache::relayPurge. More...
 
 testEpoch ()
 
 testGetMulti ()
 WANObjectCache::getMulti() More...
 
 testGetMultiCheckKeys ()
 WANObjectCache::getMulti() WANObjectCache::processCheckKeys() More...
 
 testGetMultiWithSetCallback (array $extOpts, $versioned)
 getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback WANObjectCache::makeMultiKeys WANObjectCache::getMulti More...
 
 testGetMultiWithUnionSetCallback (array $extOpts, $versioned)
 getMultiWithUnionSetCallback_provider WANObjectCache::getMultiWithUnionSetCallback() WANObjectCache::makeMultiKeys() More...
 
 testGetNotExists ()
 WANObjectCache::get() WANObjectCache::makeGlobalKey() More...
 
 testGetQoS ()
 WANObjectCache::getQoS. More...
 
 testGetWithSetCallback (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() More...
 
 testGetWithSetcallback_touched (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() More...
 
 testGetWithSetCallback_versions (array $extOpts, $versioned)
 getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() More...
 
 testGetWithSeveralCheckKeys ()
 WANObjectCache::getMulti() More...
 
 testHash256 ()
 WANObjectCache::hash256. More...
 
 testInterimHoldOffCaching ()
 WANObjectCache::useInterimHoldOffCaching WANObjectCache::getInterimValue. More...
 
 testLockTSE ()
 WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() More...
 
 testLockTSESlow ()
 WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() WANObjectCache::set() More...
 
 testMakeGlobalKey ()
 WANObjectCache::makeGlobalKey. More...
 
 testMakeKey ()
 WANObjectCache::makeKey. More...
 
 testMakeMultiKeys ()
 WANObjectCache::makeMultiKeys. More...
 
 testMakeMultiKeysCollision ()
 WANObjectCache::makeMultiKeys UnexpectedValueException. More...
 
 testMakeMultiKeysIntString ()
 WANObjectCache::makeMultiKeys. More...
 
 testMcRouterSupport ()
 
 testMcRouterSupportBroadcastDelete ()
 
 testMcRouterSupportBroadcastResetCK ()
 
 testMcRouterSupportBroadcastTouchCK ()
 
 testMultiRemap ()
 WANObjectCache::multiRemap. More...
 
 testNewEmpty ()
 WANObjectCache::__construct WANObjectCache::newEmpty. More...
 
 testPreemtiveRefresh ()
 
 testProcessCacheInterimKeys ()
 WANObjectCache::getWithSetCallback. More...
 
 testProcessCacheLruAndDelete ()
 WANObjectCache::getWithSetCallback. More...
 
 testProcessCacheNesting ()
 WANObjectCache::getWithSetCallback. More...
 
 testReap ()
 WANObjectCache::reap() WANObjectCache::reapCheckKey() More...
 
 testReap_fail ()
 WANObjectCache::reap() More...
 
 testSetAndGet ( $value, $ttl)
 provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey() More...
 
 testSetLogger ()
 WANObjectCache::setLogger. More...
 
 testSetOver ()
 WANObjectCache::set() More...
 
 testSetWithLag ()
 WANObjectCache::set() More...
 
 testStaleSet ()
 WANObjectCache::set() More...
 
 testStatsKeyClass ( $key, $class)
 statsKeyProvider WANObjectCache::determineKeyClassForStats More...
 
 testTouchKeys ()
 WANObjectCache::touchCheckKey WANObjectCache::resetCheckKey WANObjectCache::getCheckKeyTime WANObjectCache::getMultiCheckKeyTime WANObjectCache::makePurgeValue WANObjectCache::parsePurgeValue. More...
 
 testWritePending ()
 WANObjectCache::set() More...
 

Static Public Member Functions

static getMultiWithSetCallback_provider ()
 
static getMultiWithUnionSetCallback_provider ()
 
static getWithSetCallback_provider ()
 
static getWithSetCallback_versions_provider ()
 
static provideAdaptiveTTL ()
 
static provideSetAndGet ()
 
static statsKeyProvider ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

WANObjectCache $cache
 
BagOStuff $internalCache
 

Detailed Description

Member Function Documentation

◆ getBusyValues_Provider()

WANObjectCacheTest::getBusyValues_Provider ( )

Definition at line 1128 of file WANObjectCacheTest.php.

◆ getMultiWithSetCallback_provider()

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 788 of file WANObjectCacheTest.php.

References false, and true.

◆ getMultiWithUnionSetCallback_provider()

static WANObjectCacheTest::getMultiWithUnionSetCallback_provider ( )
static

Definition at line 937 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_provider()

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 515 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_versions_provider()

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 1468 of file WANObjectCacheTest.php.

References false, and true.

◆ provideAdaptiveTTL()

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 1866 of file WANObjectCacheTest.php.

References null.

◆ provideSetAndGet()

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 80 of file WANObjectCacheTest.php.

References null, and object.

◆ setUp()

WANObjectCacheTest::setUp ( )
protected

Definition at line 29 of file WANObjectCacheTest.php.

References cache.

◆ statsKeyProvider()

static WANObjectCacheTest::statsKeyProvider ( )
static

Definition at line 1950 of file WANObjectCacheTest.php.

◆ testAdaptiveTTL()

WANObjectCacheTest::testAdaptiveTTL (   $ago,
  $maxTTL,
  $minTTL,
  $factor,
  $adaptiveTTL 
)

provideAdaptiveTTL WANObjectCache::adaptiveTTL()

Parameters
float | int$ago
int$maxTTL
int$minTTL
float$factor
int$adaptiveTTL

Definition at line 1852 of file WANObjectCacheTest.php.

References cache.

◆ testBusyValueBasic()

◆ testBusyValueTypes()

WANObjectCacheTest::testBusyValueTypes (   $busyValue,
  $expected 
)

WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate() getBusyValues_Provider.

Parameters
mixed$busyValue
mixed$expected

Definition at line 1153 of file WANObjectCacheTest.php.

References $cache, $ret, WANObjectCache\getWithSetCallback(), WANObjectCache\setMockTime(), use, and wfRandomString().

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

◆ testDelete()

WANObjectCacheTest::testDelete ( )

◆ testEpoch()

◆ testGetMulti()

◆ testGetMultiCheckKeys()

◆ testGetMultiWithSetCallback()

◆ testGetMultiWithUnionSetCallback()

WANObjectCacheTest::testGetMultiWithUnionSetCallback ( array  $extOpts,
  $versioned 
)

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

◆ testGetQoS()

WANObjectCacheTest::testGetQoS ( )

◆ testGetWithSetCallback()

WANObjectCacheTest::testGetWithSetCallback ( array  $extOpts,
  $versioned 
)

◆ testGetWithSetcallback_touched()

WANObjectCacheTest::testGetWithSetcallback_touched ( array  $extOpts,
  $versioned 
)

getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate()

Parameters
array$extOpts
bool$versioned

Definition at line 463 of file WANObjectCacheTest.php.

References $cache, WANObjectCache\getWithSetCallback(), null, WANObjectCache\setMockTime(), use, and wfRandomString().

◆ testGetWithSetCallback_versions()

WANObjectCacheTest::testGetWithSetCallback_versions ( array  $extOpts,
  $versioned 
)

getWithSetCallback_versions_provider WANObjectCache::getWithSetCallback() WANObjectCache::fetchOrRegenerate()

Parameters
array$extOpts
bool$versioned

Definition at line 1399 of file WANObjectCacheTest.php.

References $cache, WANObjectCache\delete(), WANObjectCache\getWithSetCallback(), null, use, and wfRandomString().

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

◆ testHash256()

WANObjectCacheTest::testHash256 ( )

◆ testInterimHoldOffCaching()

◆ testLockTSE()

◆ testLockTSESlow()

◆ testMakeGlobalKey()

WANObjectCacheTest::testMakeGlobalKey ( )

WANObjectCache::makeGlobalKey.

Definition at line 1933 of file WANObjectCacheTest.php.

References class.

◆ testMakeKey()

WANObjectCacheTest::testMakeKey ( )

WANObjectCache::makeKey.

Definition at line 1913 of file WANObjectCacheTest.php.

References class.

◆ testMakeMultiKeys()

WANObjectCacheTest::testMakeMultiKeys ( )

◆ testMakeMultiKeysCollision()

WANObjectCacheTest::testMakeMultiKeysCollision ( )

WANObjectCache::makeMultiKeys UnexpectedValueException.

Definition at line 2040 of file WANObjectCacheTest.php.

References cache.

◆ testMakeMultiKeysIntString()

WANObjectCacheTest::testMakeMultiKeysIntString ( )

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 1733 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastDelete()

WANObjectCacheTest::testMcRouterSupportBroadcastDelete ( )

Definition at line 1759 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastResetCK()

WANObjectCacheTest::testMcRouterSupportBroadcastResetCK ( )

Definition at line 1791 of file WANObjectCacheTest.php.

References class.

◆ testMcRouterSupportBroadcastTouchCK()

WANObjectCacheTest::testMcRouterSupportBroadcastTouchCK ( )

Definition at line 1775 of file WANObjectCacheTest.php.

References class.

◆ testMultiRemap()

WANObjectCacheTest::testMultiRemap ( )

WANObjectCache::multiRemap.

Definition at line 2054 of file WANObjectCacheTest.php.

References $res, and cache.

◆ testNewEmpty()

WANObjectCacheTest::testNewEmpty ( )

◆ testPreemtiveRefresh()

WANObjectCacheTest::testPreemtiveRefresh ( )

◆ testProcessCacheInterimKeys()

◆ testProcessCacheLruAndDelete()

WANObjectCacheTest::testProcessCacheLruAndDelete ( )

◆ testProcessCacheNesting()

◆ testReap()

WANObjectCacheTest::testReap ( )

◆ testReap_fail()

WANObjectCacheTest::testReap_fail ( )

WANObjectCache::reap()

Definition at line 1676 of file WANObjectCacheTest.php.

References $ret, class, and null.

◆ testSetAndGet()

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

◆ testSetLogger()

WANObjectCacheTest::testSetLogger ( )

WANObjectCache::setLogger.

Definition at line 1890 of file WANObjectCacheTest.php.

References cache, and null.

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 110 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 1702 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 123 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStatsKeyClass()

WANObjectCacheTest::testStatsKeyClass (   $key,
  $class 
)

statsKeyProvider WANObjectCache::determineKeyClassForStats

Definition at line 1963 of file WANObjectCacheTest.php.

◆ testTouchKeys()

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 1724 of file WANObjectCacheTest.php.

References $value, cache, true, and wfRandomString().

Member Data Documentation

◆ $cache

◆ $internalCache

BagOStuff WANObjectCacheTest::$internalCache
private

Definition at line 27 of file WANObjectCacheTest.php.


The documentation for this class was generated from the following file: