10 use MediaWikiCoversValidator;
51 for ( $i = 0; $i < 10; $i++ ) {
64 for ( $i = 0; $i < 10; $i++ ) {
69 for ( $i = 0; $i < 10; $i++ ) {
80 $cacheInternal = TestingAccessWrapper::newFromObject(
$cache );
82 $cache->set(
'bar', 1, 10 );
83 $cache->set(
'baz', 1, -10 );
85 $this->
assertEquals( 0, $cacheInternal->bag[
'foo'][$cache::KEY_EXP],
'Indefinite' );
87 $this->
assertEquals( time() + 10, $cacheInternal->bag[
'bar'][$cache::KEY_EXP],
'Future', 2 );
88 $this->
assertEquals( time() - 10, $cacheInternal->bag[
'baz'][$cache::KEY_EXP],
'Past', 2 );
101 for ( $i = 0; $i < 10; $i++ ) {
102 $cache->set(
"key$i", 1 );
105 for ( $i = 10; $i < 20; $i++ ) {
106 $cache->set(
"key$i", 1 );
121 foreach ( [
'foo',
'bar',
'baz' ] as $key ) {
132 foreach ( [
'foo',
'baz',
'quux' ] as $key ) {
147 foreach ( [
'foo',
'bar',
'baz' ] as $key ) {
158 foreach ( [
'foo',
'baz',
'quux' ] as $key ) {
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
testConstructBadType()
HashBagOStuff::__construct InvalidArgumentException.
testConstructBadZero()
HashBagOStuff::__construct InvalidArgumentException.
testEvictionGet()
Ensure maxKeys eviction prefers recently retrieved keys (LRU).
testEvictionAdd()
Ensure maxKeys eviction prefers keeping new keys.
testConstruct()
HashBagOStuff::__construct.
testDelete()
HashBagOStuff::delete.
testExpire()
HashBagOStuff::doGet HashBagOStuff::expire.
testEvictionSet()
Ensure maxKeys eviction prefers recently set keys even if the keys pre-exist.
testClear()
HashBagOStuff::clear.
testConstructBadNeg()
HashBagOStuff::__construct InvalidArgumentException.
Simple store for keeping values in an associative array for the current process.