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

Public Member Functions

 setThrowsExceptionIfNoFrontEndHasBeenSet ()
 
 itIsPossibleToSetAndCheckExistenceInCache ()
 
 itIsPossibleToSetAndGetEntry ()
 
 itIsPossibleToRemoveEntryFromCache ()
 
 itIsPossibleToOverwriteAnEntryInTheCache ()
 
 findIdentifiersByTagFindsSetEntries ()
 
 setRemovesTagsFromPreviousSet ()
 
 hasReturnsFalseIfTheEntryDoesNotExist ()
 
 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

Test case for the APCu cache backend.

NOTE: If you want to execute these tests you need to enable apc in cli context (apc.enable_cli = 1) and disable slam defense (apc.slam_defense = 0)

Definition at line 30 of file ApcuBackendTest.php.

Member Function Documentation

findIdentifiersByTagFindsSetEntries ( )
Test:

Definition at line 117 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 196 of file ApcuBackendTest.php.

flushByTagsRemovesCacheEntriesWithSpecifiedTags ( )
Test:

Definition at line 212 of file ApcuBackendTest.php.

flushRemovesAllCacheEntries ( )
Test:

Definition at line 228 of file ApcuBackendTest.php.

hasReturnsFalseIfTheEntryDoesNotExist ( )
Test:

Definition at line 176 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToOverwriteAnEntryInTheCache ( )
Test:

Definition at line 102 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToRemoveEntryFromCache ( )
Test:

Definition at line 89 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndCheckExistenceInCache ( )
Test:

Definition at line 64 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndGetEntry ( )
Test:

Definition at line 76 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

largeDataIsStored ( )

Check if we can store ~5 MB of data

Test:

Definition at line 269 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

removeReturnsFalseIfTheEntryDoesntExist ( )
Test:

Definition at line 186 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

setRemovesTagsFromPreviousSet ( )
Test:

Definition at line 132 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

setTagsOnlyOnceToIdentifier ( )
Test:

Definition at line 282 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

setThrowsExceptionIfNoFrontEndHasBeenSet ( )
Test:

Definition at line 51 of file ApcuBackendTest.php.

References BaseTestCase\getUniqueId().

setUp ( )
protected

Set up

Returns
void

Definition at line 37 of file ApcuBackendTest.php.