PHP Class Neos\Cache\Tests\Unit\Backend\FileBackendTest

Inheritance: extends Neos\Cache\Tests\BaseTestCase
Afficher le fichier Open project: neos/flow-development-collection

Méthodes publiques

Méthode Description
aDedicatedCacheDirectoryIsUsedForCodeCaches ( )
backendAllowsForIteratingOverEntries ( )
collectGarbageRemovesExpiredCacheEntries ( )
findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ( )
findIdentifiersByTagReturnsEmptyArrayForExpiredEntries ( )
flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
flushRemovesAllCacheEntries ( )
flushUnfreezesTheCache ( )
getCacheDirectoryReturnsTheCurrentCacheDirectory ( )
getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
getReturnsContentOfTheCorrectCacheFile ( )
getReturnsFalseForExpiredEntries ( )
getThrowsExceptionForInvalidIdentifier ( $identifier )
hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
hasReturnsFalseForExpiredEntries ( )
hasReturnsTrueIfAnEntryExists ( )
hasThrowsExceptionForInvalidIdentifier ( $identifier )
invalidEntryIdentifiers ( )
removeReallyRemovesACacheEntry ( )
removeThrowsExceptionForInvalidIdentifier ( $identifier )
requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ( )
requireOnceDoesNotSwallowExceptionsOfTheIncludedFile ( )
requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile ( )
requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile ( )
requireOnceIncludesAndReturnsResultOfIncludedPhpFile ( )
requireOnceThrowsExceptionForInvalidIdentifier ( $identifier )
setAlsoSavesSpecifiedTags ( )
setCacheDetectsAndLoadsAFrozenCache ( )
setCacheDirectoryAllowsToSetTheCurrentCacheDirectory ( )
setCacheThrowsExceptionOnNonWritableDirectory ( )
setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ( )
setReallySavesToTheSpecifiedDirectory ( )
setThrowsExceptionForInvalidIdentifier ( $identifier )
setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength ( )
setThrowsExceptionIfDataIsNotAString ( )
setUp ( )

Méthodes protégées

Méthode Description
createEnvironmentConfigurationMock ( array $constructorArguments ) : EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject
prepareDefaultBackend ( array $backendMockMethods = ['dummy'], array $environmentConfiguration = ['~Testing', 'vfs://Foo/', 255] ) : FileBackend

Method Details

aDedicatedCacheDirectoryIsUsedForCodeCaches() public méthode

backendAllowsForIteratingOverEntries() public méthode

collectGarbageRemovesExpiredCacheEntries() public méthode

createEnvironmentConfigurationMock() protected méthode

protected createEnvironmentConfigurationMock ( array $constructorArguments ) : EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject
$constructorArguments array
Résultat Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject

findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag() public méthode

findIdentifiersByTagReturnsEmptyArrayForExpiredEntries() public méthode

flushByTagRemovesCacheEntriesWithSpecifiedTag() public méthode

flushRemovesAllCacheEntries() public méthode

flushUnfreezesTheCache() public méthode

getCacheDirectoryReturnsTheCurrentCacheDirectory() public méthode

getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen() public méthode

getReturnsContentOfTheCorrectCacheFile() public méthode

getReturnsFalseForExpiredEntries() public méthode

getThrowsExceptionForInvalidIdentifier() public méthode

hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen() public méthode

hasReturnsFalseForExpiredEntries() public méthode

hasReturnsTrueIfAnEntryExists() public méthode

hasThrowsExceptionForInvalidIdentifier() public méthode

invalidEntryIdentifiers() public méthode

prepareDefaultBackend() protected méthode

protected prepareDefaultBackend ( array $backendMockMethods = ['dummy'], array $environmentConfiguration = ['~Testing', 'vfs://Foo/', 255] ) : FileBackend
$backendMockMethods array
$environmentConfiguration array
Résultat Neos\Cache\Backend\FileBackend

removeReallyRemovesACacheEntry() public méthode

removeThrowsExceptionForInvalidIdentifier() public méthode

requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen() public méthode

requireOnceDoesNotSwallowExceptionsOfTheIncludedFile() public méthode

requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile() public méthode

requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile() public méthode

requireOnceIncludesAndReturnsResultOfIncludedPhpFile() public méthode

requireOnceThrowsExceptionForInvalidIdentifier() public méthode

setAlsoSavesSpecifiedTags() public méthode

setCacheDetectsAndLoadsAFrozenCache() public méthode

setCacheDirectoryAllowsToSetTheCurrentCacheDirectory() public méthode

setCacheThrowsExceptionOnNonWritableDirectory() public méthode

setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier() public méthode

setReallySavesToTheSpecifiedDirectory() public méthode

setThrowsExceptionForInvalidIdentifier() public méthode

setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength() public méthode

setThrowsExceptionIfDataIsNotAString() public méthode

setUp() public méthode

public setUp ( )