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

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

Protected Properties

Property Type Description
$mockCacheFrontend Neos\Cache\Frontend\FrontendInterface | PHPUnit_Framework_MockObject_MockObject
$mockEnvironmentConfiguration Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject

Public Methods

Method 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

Protected Methods

Method 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 method

backendAllowsForIteratingOverEntries() public method

flushRemovesAllCacheEntries() public method

getCacheDirectoryReturnsTheCurrentCacheDirectory() public method

getReturnsContentOfTheCorrectCacheFile() public method

getReturnsFalseForDeletedFiles() public method

getSimpleFileBackend() protected method

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
return Neos\Cache\Backend\SimpleFileBackend

getThrowsExceptionForInvalidIdentifier() public method

public getThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

hasReturnsFalseIfAnEntryDoesNotExist() public method

hasReturnsTrueIfAnEntryExists() public method

hasThrowsExceptionForInvalidIdentifier() public method

public hasThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

invalidEntryIdentifiers() public method

public invalidEntryIdentifiers ( ) : array
return array

removeReallyRemovesACacheEntry() public method

removeThrowsExceptionForInvalidIdentifier() public method

public removeThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

requireOnceDoesNotSwallowExceptionsOfTheIncludedFile() public method

requireOnceDoesNotSwallowPhpNoticesOfTheIncludedFile() public method

requireOnceDoesNotSwallowPhpWarningsOfTheIncludedFile() public method

requireOnceIncludesAndReturnsResultOfIncludedPhpFile() public method

requireOnceThrowsExceptionForInvalidIdentifier() public method

public requireOnceThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

setCacheDirectoryAllowsToSetTheCurrentCacheDirectory() public method

setCacheThrowsExceptionOnNonWritableDirectory() public method

setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier() public method

setReallySavesToTheSpecifiedDirectory() public method

setThrowsExceptionForInvalidIdentifier() public method

public setThrowsExceptionForInvalidIdentifier ( string $identifier )
$identifier string

setThrowsExceptionIfCachePathLengthExceedsMaximumPathLength() public method

setThrowsExceptionIfDataIsNotAString() public method

setUp() public method

public setUp ( ) : void
return void

Property Details

$mockCacheFrontend protected_oe property

protected FrontendInterface,Neos\Cache\Frontend|PHPUnit_Framework_MockObject_MockObject $mockCacheFrontend
return Neos\Cache\Frontend\FrontendInterface | PHPUnit_Framework_MockObject_MockObject

$mockEnvironmentConfiguration protected_oe property

protected EnvironmentConfiguration,Neos\Cache|PHPUnit_Framework_MockObject_MockObject $mockEnvironmentConfiguration
return Neos\Cache\EnvironmentConfiguration | PHPUnit_Framework_MockObject_MockObject