MediaWiki REL1_28
WANObjectCacheTest Class Reference
Inheritance diagram for WANObjectCacheTest:
Collaboration diagram for WANObjectCacheTest:

Public Member Functions

 testAdaptiveTTL ( $ago, $maxTTL, $minTTL, $factor, $adaptiveTTL)
 provideAdaptiveTTL WANObjectCache::adaptiveTTL()
 
 testBusyValue ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testCheckKeyInitHoldoff ()
 WANObjectCache::get() WANObjectCache::processCheckKeys()
 
 testDelete ()
 WANObjectCache::delete()
 
 testGetMulti ()
 WANObjectCache::getMulti()
 
 testGetMultiCheckKeys ()
 WANObjectCache::getMulti() WANObjectCache::processCheckKeys()
 
 testGetMultiWithSetCallback (array $extOpts, $versioned)
 getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback() WANObjectCache::makeMultiKeys()
 
 testGetNotExists ()
 WANObjectCache::get() WANObjectCache::makeGlobalKey()
 
 testGetWithSetCallback (array $extOpts, $versioned)
 getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testGetWithSetCallback_versions (array $extOpts, $versioned)
 getWithSetCallback_versions_provider
 
 testGetWithSeveralCheckKeys ()
 WANObjectCache::getMulti()
 
 testLockTSE ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testLockTSESlow ()
 WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()
 
 testMcRouterSupport ()
 
 testProcessCache ()
 
 testSetAndGet ( $value, $ttl)
 provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()
 
 testSetOver ()
 WANObjectCache::set()
 
 testSetWithLag ()
 WANObjectCache::set()
 
 testStaleSet ()
 WANObjectCache::set()
 
 testTouchKeys ()
 WANObjectCache::touchCheckKey() WANObjectCache::resetCheckKey() WANObjectCache::getCheckKeyTime()
 
 testWritePending ()
 WANObjectCache::set()
 

Static Public Member Functions

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

Protected Member Functions

 setUp ()
 

Private Attributes

WANObjectCache $cache
 
 $internalCache
 

Detailed Description

Definition at line 3 of file WANObjectCacheTest.php.

Member Function Documentation

◆ getMultiWithSetCallback_provider()

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 397 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_provider()

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 253 of file WANObjectCacheTest.php.

References false, and true.

◆ getWithSetCallback_versions_provider()

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 798 of file WANObjectCacheTest.php.

References false, and true.

◆ provideAdaptiveTTL()

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 954 of file WANObjectCacheTest.php.

◆ provideSetAndGet()

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 54 of file WANObjectCacheTest.php.

References object.

◆ setUp()

WANObjectCacheTest::setUp ( )
protected

Definition at line 9 of file WANObjectCacheTest.php.

References cache.

◆ 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 940 of file WANObjectCacheTest.php.

References cache.

◆ testBusyValue()

WANObjectCacheTest::testBusyValue ( )

WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Definition at line 483 of file WANObjectCacheTest.php.

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

◆ testCheckKeyInitHoldoff()

WANObjectCacheTest::testCheckKeyInitHoldoff ( )

WANObjectCache::get() WANObjectCache::processCheckKeys()

Definition at line 672 of file WANObjectCacheTest.php.

References $cache, WANObjectCache\get(), WANObjectCache\set(), and wfRandomString().

◆ testDelete()

WANObjectCacheTest::testDelete ( )

WANObjectCache::delete()

Definition at line 704 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testGetMulti()

WANObjectCacheTest::testGetMulti ( )

WANObjectCache::getMulti()

Definition at line 537 of file WANObjectCacheTest.php.

References $cache, WANObjectCache\getCheckKeyTime(), WANObjectCache\getMulti(), WANObjectCache\set(), and wfRandomString().

◆ testGetMultiCheckKeys()

WANObjectCacheTest::testGetMultiCheckKeys ( )

WANObjectCache::getMulti() WANObjectCache::processCheckKeys()

Definition at line 596 of file WANObjectCacheTest.php.

References $cache, as, WANObjectCache\getMulti(), WANObjectCache\set(), WANObjectCache\touchCheckKey(), and wfRandomString().

◆ testGetMultiWithSetCallback()

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

getMultiWithSetCallback_provider WANObjectCache::getMultiWithSetCallback() WANObjectCache::makeMultiKeys()

Parameters
array$extOpts
bool$versioned

Definition at line 267 of file WANObjectCacheTest.php.

References $cache, $value, array(), cache, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getMultiWithSetCallback(), WANObjectCache\makeMultiKeys(), use, and wfRandomString().

◆ testGetNotExists()

WANObjectCacheTest::testGetNotExists ( )

WANObjectCache::get() WANObjectCache::makeGlobalKey()

Definition at line 72 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testGetWithSetCallback()

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

getWithSetCallback_provider WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Parameters
array$extOpts
bool$versioned

Definition at line 166 of file WANObjectCacheTest.php.

References $cache, $value, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getCheckKeyTime(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().

◆ testGetWithSetCallback_versions()

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

getWithSetCallback_versions_provider

Parameters
array$extOpts
$versioned

Definition at line 745 of file WANObjectCacheTest.php.

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

◆ testGetWithSeveralCheckKeys()

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )

WANObjectCache::getMulti()

Definition at line 847 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testLockTSE()

WANObjectCacheTest::testLockTSE ( )

WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Definition at line 408 of file WANObjectCacheTest.php.

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

◆ testLockTSESlow()

WANObjectCacheTest::testLockTSESlow ( )

WANObjectCache::getWithSetCallback() WANObjectCache::doGetWithSetCallback()

Definition at line 450 of file WANObjectCacheTest.php.

References $cache, $ret, $value, WANObjectCache\delete(), WANObjectCache\get(), WANObjectCache\getWithSetCallback(), use, and wfRandomString().

◆ testMcRouterSupport()

WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 909 of file WANObjectCacheTest.php.

◆ testProcessCache()

WANObjectCacheTest::testProcessCache ( )

Definition at line 105 of file WANObjectCacheTest.php.

References $keys, as, cache, use, and wfRandomString().

◆ testSetAndGet()

WANObjectCacheTest::testSetAndGet (   $value,
  $ttl 
)

provideSetAndGet WANObjectCache::set() WANObjectCache::get() WANObjectCache::makeKey()

Parameters
mixed$value
integer$ttl

Definition at line 31 of file WANObjectCacheTest.php.

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

◆ testSetOver()

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 84 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testSetWithLag()

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 878 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testStaleSet()

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 97 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

◆ testTouchKeys()

WANObjectCacheTest::testTouchKeys ( )

WANObjectCache::touchCheckKey() WANObjectCache::resetCheckKey() WANObjectCache::getCheckKeyTime()

Definition at line 810 of file WANObjectCacheTest.php.

References cache, and wfRandomString().

◆ testWritePending()

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 900 of file WANObjectCacheTest.php.

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

Member Data Documentation

◆ $cache

◆ $internalCache

WANObjectCacheTest::$internalCache
private

Definition at line 7 of file WANObjectCacheTest.php.


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