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

Inheritance: extends Neos\Cache\Tests\BaseTestCase
Mostra file Open project: neos/flow-development-collection

Public Methods

Method 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 ( )

Protected Methods

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

Method Details

aDedicatedCacheDirectoryIsUsedForCodeCaches() public method

backendAllowsForIteratingOverEntries() public method

collectGarbageRemovesExpiredCacheEntries() public method

createEnvironmentConfigurationMock() protected method

protected createEnvironmentConfigurationMock ( array $constructorArguments ) : EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject
$constructorArguments array
return Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject

findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag() public method

findIdentifiersByTagReturnsEmptyArrayForExpiredEntries() public method

flushByTagRemovesCacheEntriesWithSpecifiedTag() public method

flushRemovesAllCacheEntries() public method

flushUnfreezesTheCache() public method

getCacheDirectoryReturnsTheCurrentCacheDirectory() public method

getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen() public method

getReturnsContentOfTheCorrectCacheFile() public method

getReturnsFalseForExpiredEntries() public method

getThrowsExceptionForInvalidIdentifier() public method

hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen() public method

hasReturnsFalseForExpiredEntries() public method

hasReturnsTrueIfAnEntryExists() public method

hasThrowsExceptionForInvalidIdentifier() public method

invalidEntryIdentifiers() public method

prepareDefaultBackend() protected method

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

removeReallyRemovesACacheEntry() public method

removeThrowsExceptionForInvalidIdentifier() public method

requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen() public method

requireOnceDoesNotSwallowExceptionsOfTheIncludedFile() public method

requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile() public method

requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile() public method

requireOnceIncludesAndReturnsResultOfIncludedPhpFile() public method

requireOnceThrowsExceptionForInvalidIdentifier() public method

setAlsoSavesSpecifiedTags() public method

setCacheDetectsAndLoadsAFrozenCache() public method

setCacheDirectoryAllowsToSetTheCurrentCacheDirectory() public method

setCacheThrowsExceptionOnNonWritableDirectory() public method

setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier() public method

setReallySavesToTheSpecifiedDirectory() public method

setThrowsExceptionForInvalidIdentifier() public method

setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength() public method

setThrowsExceptionIfDataIsNotAString() public method

setUp() public method

public setUp ( )