MediaWiki REL1_33
HashBagOStuffTest Class Reference

BagOStuff. More...

Inheritance diagram for HashBagOStuffTest:
Collaboration diagram for HashBagOStuffTest:

Public Member Functions

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

Detailed Description

BagOStuff.

Definition at line 8 of file HashBagOStuffTest.php.

Member Function Documentation

◆ testClear()

HashBagOStuffTest::testClear ( )

HashBagOStuff::clear.

Definition at line 62 of file HashBagOStuffTest.php.

References $cache.

◆ testConstruct()

HashBagOStuffTest::testConstruct ( )

HashBagOStuff::__construct.

Definition at line 15 of file HashBagOStuffTest.php.

◆ testConstructBadNeg()

HashBagOStuffTest::testConstructBadNeg ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 34 of file HashBagOStuffTest.php.

References $cache.

◆ testConstructBadType()

HashBagOStuffTest::testConstructBadType ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 42 of file HashBagOStuffTest.php.

References $cache.

◆ testConstructBadZero()

HashBagOStuffTest::testConstructBadZero ( )

HashBagOStuff::__construct InvalidArgumentException.

Definition at line 26 of file HashBagOStuffTest.php.

References $cache.

◆ testDelete()

HashBagOStuffTest::testDelete ( )

HashBagOStuff::delete.

Definition at line 49 of file HashBagOStuffTest.php.

References $cache.

◆ testEvictionAdd()

HashBagOStuffTest::testEvictionAdd ( )

Ensure maxKeys eviction prefers keeping new keys.

HashBagOStuff::set

Definition at line 99 of file HashBagOStuffTest.php.

References $cache.

◆ testEvictionGet()

HashBagOStuffTest::testEvictionGet ( )

Ensure maxKeys eviction prefers recently retrieved keys (LRU).

HashBagOStuff::doGet HashBagOStuff::hasKey

Definition at line 144 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 118 of file HashBagOStuffTest.php.

References $cache, and as.

◆ testExpire()

HashBagOStuffTest::testExpire ( )

HashBagOStuff::doGet HashBagOStuff::expire.

Definition at line 78 of file HashBagOStuffTest.php.

References $cache.


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