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

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

Protected Properties

Свойство Type Description
$mockCacheFrontend Neos\Cache\Frontend\FrontendInterface | PHPUnit_Framework_MockObject_MockObject
$mockEnvironmentConfiguration Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject

Méthodes publiques

Méthode Description
aDedicatedCacheDirectoryIsUsedForCodeCaches ( )
backendAllowsForIteratingOverEntries ( )
flushRemovesAllCacheEntries ( )
getCacheDirectoryReturnsTheCurrentCacheDirectory ( )
getReturnsContentOfTheCorrectCacheFile ( )
getReturnsFalseForDeletedFiles ( )
getThrowsExceptionForInvalidIdentifier ( string $identifier )
hasReturnsFalseIfAnEntryDoesNotExist ( )
hasReturnsTrueIfAnEntryExists ( )
hasThrowsExceptionForInvalidIdentifier ( string $identifier )
invalidEntryIdentifiers ( ) : array
removeReallyRemovesACacheEntry ( )
removeThrowsExceptionForInvalidIdentifier ( string $identifier )
requireOnceDoesNotSwallowExceptionsOfTheIncludedFile ( )
requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile ( )
requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile ( )
requireOnceIncludesAndReturnsResultOfIncludedPhpFile ( )
requireOnceThrowsExceptionForInvalidIdentifier ( string $identifier )
setCacheDirectoryAllowsToSetTheCurrentCacheDirectory ( )
setCacheThrowsExceptionOnNonWritableDirectory ( )
setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ( )
setReallySavesToTheSpecifiedDirectory ( )
setThrowsExceptionForInvalidIdentifier ( string $identifier )
setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength ( )
setThrowsExceptionIfDataIsNotAString ( )
setUp ( ) : void

Méthodes protégées

Méthode Description
getSimpleFileBackend ( array $options = [], Neos\Cache\Frontend\FrontendInterface $mockCacheFrontend = null ) : SimpleFileBackend Convenience function to retrieve an instance of SimpleFileBackend with required dependencies

Method Details

aDedicatedCacheDirectoryIsUsedForCodeCaches() public méthode

backendAllowsForIteratingOverEntries() public méthode

flushRemovesAllCacheEntries() public méthode

getCacheDirectoryReturnsTheCurrentCacheDirectory() public méthode

getReturnsContentOfTheCorrectCacheFile() public méthode

getReturnsFalseForDeletedFiles() public méthode

getSimpleFileBackend() protected méthode

Convenience function to retrieve an instance of SimpleFileBackend with required dependencies
protected getSimpleFileBackend ( array $options = [], Neos\Cache\Frontend\FrontendInterface $mockCacheFrontend = null ) : SimpleFileBackend
$options array
$mockCacheFrontend Neos\Cache\Frontend\FrontendInterface
Résultat Neos\Cache\Backend\SimpleFileBackend

getThrowsExceptionForInvalidIdentifier() public méthode

public getThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

hasReturnsFalseIfAnEntryDoesNotExist() public méthode

hasReturnsTrueIfAnEntryExists() public méthode

hasThrowsExceptionForInvalidIdentifier() public méthode

public hasThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

invalidEntryIdentifiers() public méthode

public invalidEntryIdentifiers ( ) : array
Résultat array

removeReallyRemovesACacheEntry() public méthode

removeThrowsExceptionForInvalidIdentifier() public méthode

public removeThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

requireOnceDoesNotSwallowExceptionsOfTheIncludedFile() public méthode

requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile() public méthode

requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile() public méthode

requireOnceIncludesAndReturnsResultOfIncludedPhpFile() public méthode

requireOnceThrowsExceptionForInvalidIdentifier() public méthode

public requireOnceThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

setCacheDirectoryAllowsToSetTheCurrentCacheDirectory() public méthode

setCacheThrowsExceptionOnNonWritableDirectory() public méthode

setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier() public méthode

setReallySavesToTheSpecifiedDirectory() public méthode

setThrowsExceptionForInvalidIdentifier() public méthode

public setThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength() public méthode

setThrowsExceptionIfDataIsNotAString() public méthode

setUp() public méthode

public setUp ( ) : void
Résultat void

Property Details

$mockCacheFrontend protected_oe property

protected FrontendInterface,Neos\Cache\Frontend|PHPUnit_Framework_MockObject_MockObject $mockCacheFrontend
Résultat Neos\Cache\Frontend\FrontendInterface | PHPUnit_Framework_MockObject_MockObject

$mockEnvironmentConfiguration protected_oe property

protected EnvironmentConfiguration,Neos\Cache|PHPUnit_Framework_MockObject_MockObject $mockEnvironmentConfiguration
Résultat Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject