TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ApcBackendTest Class Reference
Inheritance diagram for ApcBackendTest:
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

Testcase for the APC cache backend.

NOTE: If you want to execute these tests you need to enable apc in cli context (apc.enable_cli = 1)

This file is a backport from FLOW3

Definition at line 27 of file ApcBackendTest.php.

Member Function Documentation

findIdentifiersByTagFindsSetEntries ( )
Test:

Definition at line 116 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 197 of file ApcBackendTest.php.

flushByTagsRemovesCacheEntriesWithSpecifiedTags ( )
Test:

Definition at line 213 of file ApcBackendTest.php.

flushRemovesAllCacheEntries ( )
Test:

Definition at line 229 of file ApcBackendTest.php.

hasReturnsFalseIfTheEntryDoesNotExist ( )
Test:

Definition at line 175 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToOverwriteAnEntryInTheCache ( )
Test:

Definition at line 101 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToRemoveEntryFromCache ( )
Test:

Definition at line 87 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndCheckExistenceInCache ( )
Test:

Definition at line 61 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

itIsPossibleToSetAndGetEntry ( )
Test:

Definition at line 74 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

largeDataIsStored ( )

Check if we can store ~5 MB of data

Test:

Definition at line 270 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

removeReturnsFalseIfTheEntryDoesntExist ( )
Test:

Definition at line 186 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

setRemovesTagsFromPreviousSet ( )
Test:

Definition at line 131 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

setTagsOnlyOnceToIdentifier ( )
Test:

Definition at line 283 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

setThrowsExceptionIfNoFrontEndHasBeenSet ( )
Test:

Definition at line 48 of file ApcBackendTest.php.

References BaseTestCase\getUniqueId().

setUp ( )
protected

Sets up this testcase

Returns
void

Definition at line 34 of file ApcBackendTest.php.