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

Public Member Functions

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

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

static WANObjectCacheTest::getMultiWithSetCallback_provider ( )
static

Definition at line 397 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::getWithSetCallback_provider ( )
static

Definition at line 253 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::getWithSetCallback_versions_provider ( )
static

Definition at line 798 of file WANObjectCacheTest.php.

References false, and true.

static WANObjectCacheTest::provideAdaptiveTTL ( )
static

Definition at line 954 of file WANObjectCacheTest.php.

static WANObjectCacheTest::provideSetAndGet ( )
static

Definition at line 54 of file WANObjectCacheTest.php.

References object.

WANObjectCacheTest::setUp ( )
protected

Definition at line 9 of file WANObjectCacheTest.php.

References cache, and TestingAccessWrapper\newFromObject().

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.

WANObjectCacheTest::testCheckKeyInitHoldoff ( )
WANObjectCacheTest::testDelete ( )
WANObjectCacheTest::testGetMultiWithSetCallback ( array  $extOpts,
  $versioned 
)
WANObjectCacheTest::testGetNotExists ( )
WANObjectCacheTest::testGetWithSetCallback ( array  $extOpts,
  $versioned 
)
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().

WANObjectCacheTest::testGetWithSeveralCheckKeys ( )
WANObjectCacheTest::testMcRouterSupport ( )

Definition at line 909 of file WANObjectCacheTest.php.

WANObjectCacheTest::testProcessCache ( )

Definition at line 105 of file WANObjectCacheTest.php.

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

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().

WANObjectCacheTest::testSetOver ( )

WANObjectCache::set()

Definition at line 84 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

WANObjectCacheTest::testSetWithLag ( )

WANObjectCache::set()

Definition at line 878 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

WANObjectCacheTest::testStaleSet ( )

WANObjectCache::set()

Definition at line 97 of file WANObjectCacheTest.php.

References $value, cache, and wfRandomString().

WANObjectCacheTest::testWritePending ( )

WANObjectCache::set()

Definition at line 900 of file WANObjectCacheTest.php.

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

Member Data Documentation

WANObjectCacheTest::$internalCache
private

Definition at line 7 of file WANObjectCacheTest.php.


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