TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
MemcachedBackendTest Class Reference
Inheritance diagram for MemcachedBackendTest:
UnitTestCase BaseTestCase

Public Member Functions

 setThrowsExceptionIfNoFrontEndHasBeenSet ()
 
 initializeObjectThrowsExceptionIfNoMemcacheServerIsConfigured ()
 
 itIsPossibleToSetAndCheckExistenceInCache ()
 
 itIsPossibleToSetAndGetEntry ()
 
 itIsPossibleToRemoveEntryFromCache ()
 
 itIsPossibleToOverwriteAnEntryInTheCache ()
 
 findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ()
 
 setRemovesTagsFromPreviousSet ()
 
 hasReturnsFalseIfTheEntryDoesntExist ()
 
 removeReturnsFalseIfTheEntryDoesntExist ()
 
 flushByTagRemovesCacheEntriesWithSpecifiedTag ()
 
 flushByTagsRemovesCacheEntriesWithSpecifiedTags ()
 
 flushRemovesAllCacheEntries ()
 
 largeDataIsStored ()
 
 setTagsOnlyOnceToIdentifier ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Additional Inherited Members

- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for the cache to memcached backend

This file is a backport from FLOW3

Definition at line 24 of file MemcachedBackendTest.php.

Member Function Documentation

findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 131 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 182 of file MemcachedBackendTest.php.

flushByTagsRemovesCacheEntriesWithSpecifiedTags ( )
Test:

Definition at line 198 of file MemcachedBackendTest.php.

flushRemovesAllCacheEntries ( )
Test:

Definition at line 214 of file MemcachedBackendTest.php.

hasReturnsFalseIfTheEntryDoesntExist ( )
Test:

Definition at line 160 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

initializeObjectThrowsExceptionIfNoMemcacheServerIsConfigured ( )
Test:

Definition at line 64 of file MemcachedBackendTest.php.

itIsPossibleToOverwriteAnEntryInTheCache ( )
Test:

Definition at line 116 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToRemoveEntryFromCache ( )
Test:

Definition at line 102 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndCheckExistenceInCache ( )
Test:

Definition at line 76 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndGetEntry ( )
Test:

Definition at line 89 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

largeDataIsStored ( )

Check if we can store ~5 MB of data, this gives some headroom for the reflection data.

Test:

Definition at line 259 of file MemcachedBackendTest.php.

removeReturnsFalseIfTheEntryDoesntExist ( )
Test:

Definition at line 171 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

setRemovesTagsFromPreviousSet ( )
Test:

Definition at line 146 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

setTagsOnlyOnceToIdentifier ( )
Test:

Definition at line 271 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

setThrowsExceptionIfNoFrontEndHasBeenSet ( )
Test:

Definition at line 48 of file MemcachedBackendTest.php.

References BaseTestCase\getUniqueId().

setUp ( )
protected

Sets up this testcase

Returns
void

Definition at line 31 of file MemcachedBackendTest.php.