MediaWiki  1.30.0
HashBagOStuffTest Class Reference

BagOStuff. More...

Inheritance diagram for HashBagOStuffTest:
Collaboration diagram for HashBagOStuffTest:

Public Member Functions

 testClear ()
 HashBagOStuff::clear. More...
 
 testConstruct ()
 HashBagOStuff::__construct. More...
 
 testConstructBadNeg ()
 HashBagOStuff::__construct InvalidArgumentException. More...
 
 testConstructBadType ()
 HashBagOStuff::__construct InvalidArgumentException. More...
 
 testConstructBadZero ()
 HashBagOStuff::__construct InvalidArgumentException. More...
 
 testDelete ()
 HashBagOStuff::delete. More...
 
 testEvictionAdd ()
 Ensure maxKeys eviction prefers keeping new keys. More...
 
 testEvictionGet ()
 Ensure maxKeys eviction prefers recently retrieved keys (LRU). More...
 
 testEvictionSet ()
 Ensure maxKeys eviction prefers recently set keys even if the keys pre-exist. More...
 
 testExpire ()
 HashBagOStuff::doGet HashBagOStuff::expire. More...
 

Detailed Description

BagOStuff.

Definition at line 8 of file HashBagOStuffTest.php.

Member Function Documentation

◆ testClear()

HashBagOStuffTest::testClear ( )

HashBagOStuff::clear.

Definition at line 60 of file HashBagOStuffTest.php.

References $cache.

◆ testConstruct()

HashBagOStuffTest::testConstruct ( )

HashBagOStuff::__construct.

Definition at line 13 of file HashBagOStuffTest.php.

References class.

◆ testConstructBadNeg()

HashBagOStuffTest::testConstructBadNeg ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 32 of file HashBagOStuffTest.php.

References $cache.

◆ testConstructBadType()

HashBagOStuffTest::testConstructBadType ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 40 of file HashBagOStuffTest.php.

References $cache.

◆ testConstructBadZero()

HashBagOStuffTest::testConstructBadZero ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 24 of file HashBagOStuffTest.php.

References $cache.

◆ testDelete()

HashBagOStuffTest::testDelete ( )

HashBagOStuff::delete.

Definition at line 47 of file HashBagOStuffTest.php.

References $cache.

◆ testEvictionAdd()

HashBagOStuffTest::testEvictionAdd ( )

Ensure maxKeys eviction prefers keeping new keys.

HashBagOStuff::set

Definition at line 97 of file HashBagOStuffTest.php.

References $cache.

◆ testEvictionGet()

HashBagOStuffTest::testEvictionGet ( )

Ensure maxKeys eviction prefers recently retrieved keys (LRU).

HashBagOStuff::doGet HashBagOStuff::hasKey

Definition at line 142 of file HashBagOStuffTest.php.

References $cache, and as.

◆ testEvictionSet()

HashBagOStuffTest::testEvictionSet ( )

Ensure maxKeys eviction prefers recently set keys even if the keys pre-exist.

HashBagOStuff::set

Definition at line 116 of file HashBagOStuffTest.php.

References $cache, and as.

◆ testExpire()

HashBagOStuffTest::testExpire ( )

HashBagOStuff::doGet HashBagOStuff::expire.

Definition at line 76 of file HashBagOStuffTest.php.

References $cache.


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