TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
FileBackendTest Class Reference
Inheritance diagram for FileBackendTest:
UnitTestCase BaseTestCase

Public Member Functions

 setCacheDirectoryThrowsExceptionOnNonWritableDirectory ()
 
 setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsAbsolutePathWithTrailingSlash ()
 
 setCacheDirectoryAllowsRelativePathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsRelativePathWithTrailingSlash ()
 
 setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash ()
 
 setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash ()
 
 setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash ()
 
 getCacheDirectoryReturnsTheCurrentCacheDirectory ()
 
 aDedicatedCacheDirectoryIsUsedForCodeCaches ()
 
 setThrowsExceptionIfDataIsNotAString ()
 
 setReallySavesToTheSpecifiedDirectory ()
 
 setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ()
 
 setAlsoSavesSpecifiedTags ()
 
 setCacheDetectsAndLoadsAFrozenCache ()
 
 getReturnsContentOfTheCorrectCacheFile ()
 
 getReturnsFalseForExpiredEntries ()
 
 getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ()
 
 hasReturnsTrueIfAnEntryExists ()
 
 hasReturnsFalseForExpiredEntries ()
 
 hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ()
 
 removeReallyRemovesACacheEntry ()
 
 invalidEntryIdentifiers ()
 
 setThrowsExceptionForInvalidIdentifier ($identifier)
 
 getThrowsExceptionForInvalidIdentifier ($identifier)
 
 hasThrowsExceptionForInvalidIdentifier ($identifier)
 
 removeThrowsExceptionForInvalidIdentifier ($identifier)
 
 requireOnceThrowsExceptionForInvalidIdentifier ($identifier)
 
 requireOnceIncludesAndReturnsResultOfIncludedPhpFile ()
 
 requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ()
 
 findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ()
 
 findIdentifiersByTagDoesNotReturnExpiredEntries ()
 
 flushRemovesAllCacheEntries ()
 
 flushCreatesCacheDirectoryAgain ()
 
 flushByTagRemovesCacheEntriesWithSpecifiedTag ()
 
 collectGarbageRemovesExpiredCacheEntries ()
 
 flushUnfreezesTheCache ()
 

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 File cache backend

This file is a backport from FLOW3

Definition at line 27 of file FileBackendTest.php.

Member Function Documentation

aDedicatedCacheDirectoryIsUsedForCodeCaches ( )
Test:

Definition at line 180 of file FileBackendTest.php.

collectGarbageRemovesExpiredCacheEntries ( )
Test:

Definition at line 781 of file FileBackendTest.php.

findIdentifiersByTagDoesNotReturnExpiredEntries ( )
Test:

Definition at line 692 of file FileBackendTest.php.

findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 665 of file FileBackendTest.php.

flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 763 of file FileBackendTest.php.

flushCreatesCacheDirectoryAgain ( )
Test:

Definition at line 744 of file FileBackendTest.php.

flushRemovesAllCacheEntries ( )
Test:

Definition at line 716 of file FileBackendTest.php.

flushUnfreezesTheCache ( )
Test:

Definition at line 809 of file FileBackendTest.php.

getCacheDirectoryReturnsTheCurrentCacheDirectory ( )
Test:

Definition at line 162 of file FileBackendTest.php.

getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 379 of file FileBackendTest.php.

getReturnsContentOfTheCorrectCacheFile ( )
Test:

Definition at line 333 of file FileBackendTest.php.

getReturnsFalseForExpiredEntries ( )
Test:

Definition at line 360 of file FileBackendTest.php.

getThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 533 of file FileBackendTest.php.

hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 441 of file FileBackendTest.php.

hasReturnsFalseForExpiredEntries ( )
Test:

Definition at line 426 of file FileBackendTest.php.

hasReturnsTrueIfAnEntryExists ( )
Test:

Definition at line 402 of file FileBackendTest.php.

hasThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 555 of file FileBackendTest.php.

invalidEntryIdentifiers ( )

Definition at line 489 of file FileBackendTest.php.

removeReallyRemovesACacheEntry ( )
Test:

Definition at line 464 of file FileBackendTest.php.

removeThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 572 of file FileBackendTest.php.

requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ( )
Test:

Definition at line 639 of file FileBackendTest.php.

requireOnceIncludesAndReturnsResultOfIncludedPhpFile ( )
Test:

Definition at line 615 of file FileBackendTest.php.

requireOnceThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 594 of file FileBackendTest.php.

setAlsoSavesSpecifiedTags ( )
Test:

Definition at line 272 of file FileBackendTest.php.

setCacheDetectsAndLoadsAFrozenCache ( )
Test:

Definition at line 298 of file FileBackendTest.php.

setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash ( )
Test:

Definition at line 140 of file FileBackendTest.php.

References BaseTestCase\getAccessibleMock().

setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash ( )
Test:

Definition at line 151 of file FileBackendTest.php.

References BaseTestCase\getAccessibleMock().

setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash ( )
Test:

Definition at line 66 of file FileBackendTest.php.

References BaseTestCase\getAccessibleMock().

setCacheDirectoryAllowsAbsolutePathWithTrailingSlash ( )
Test:

Definition at line 77 of file FileBackendTest.php.

References BaseTestCase\getAccessibleMock().

setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash ( )
setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash ( )
setCacheDirectoryAllowsRelativePathWithoutTrailingSlash ( )
setCacheDirectoryAllowsRelativePathWithTrailingSlash ( )
setCacheDirectoryThrowsExceptionOnNonWritableDirectory ( )
Test:

Definition at line 47 of file FileBackendTest.php.

setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ( )
Test:

Definition at line 244 of file FileBackendTest.php.

setReallySavesToTheSpecifiedDirectory ( )
Test:

Definition at line 218 of file FileBackendTest.php.

setThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 511 of file FileBackendTest.php.

setThrowsExceptionIfDataIsNotAString ( )
Test:

Definition at line 198 of file FileBackendTest.php.

setUp ( )
protected

Sets up this testcase

Returns
void

Definition at line 34 of file FileBackendTest.php.