TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Detailed Description

Testcase for the File cache backend

This file is a backport from FLOW3

Author
Ingo Renner ingo@.nosp@m.typo.nosp@m.3.org
Christian Kuhn lolli.nosp@m.@sch.nosp@m.warzb.nosp@m.u.ch

Definition at line 29 of file FileBackendTest.php.

Member Function Documentation

◆ aDedicatedCacheDirectoryIsUsedForCodeCaches()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::aDedicatedCacheDirectoryIsUsedForCodeCaches ( )
Test:

Definition at line 75 of file FileBackendTest.php.

References $backend.

◆ collectGarbageRemovesExpiredCacheEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::collectGarbageRemovesExpiredCacheEntries ( )
Test:

Definition at line 649 of file FileBackendTest.php.

References $backend.

◆ findIdentifiersByTagDoesNotReturnExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::findIdentifiersByTagDoesNotReturnExpiredEntries ( )
Test:

Definition at line 576 of file FileBackendTest.php.

References $backend.

◆ findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::findIdentifiersByTagFindsCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 553 of file FileBackendTest.php.

References $backend.

◆ flushByTagRemovesCacheEntriesWithSpecifiedTag()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushByTagRemovesCacheEntriesWithSpecifiedTag ( )
Test:

Definition at line 635 of file FileBackendTest.php.

References $backend.

◆ flushCreatesCacheDirectoryAgain()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushCreatesCacheDirectoryAgain ( )
Test:

Definition at line 620 of file FileBackendTest.php.

References $backend.

◆ flushRemovesAllCacheEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushRemovesAllCacheEntries ( )
Test:

Definition at line 596 of file FileBackendTest.php.

References $backend.

◆ flushUnfreezesTheCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::flushUnfreezesTheCache ( )
Test:

Definition at line 673 of file FileBackendTest.php.

References $backend.

◆ getCacheDirectoryReturnsTheCurrentCacheDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getCacheDirectoryReturnsTheCurrentCacheDirectory ( )
Test:

Definition at line 61 of file FileBackendTest.php.

References $backend.

◆ getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 237 of file FileBackendTest.php.

References $backend.

◆ getReturnsContentOfTheCorrectCacheFile()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getReturnsContentOfTheCorrectCacheFile ( )
Test:

Definition at line 199 of file FileBackendTest.php.

References $backend.

◆ getReturnsFalseForExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getReturnsFalseForExpiredEntries ( )
Test:

Definition at line 222 of file FileBackendTest.php.

References $backend.

◆ getThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::getThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 365 of file FileBackendTest.php.

References $backend.

◆ hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasDoesNotCheckIfAnEntryIsExpiredIfTheCacheIsFrozen ( )
Test:

Definition at line 287 of file FileBackendTest.php.

References $backend.

◆ hasReturnsFalseForExpiredEntries()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasReturnsFalseForExpiredEntries ( )
Test:

Definition at line 276 of file FileBackendTest.php.

References $backend.

◆ hasReturnsTrueIfAnEntryExists()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasReturnsTrueIfAnEntryExists ( )
Test:

Definition at line 256 of file FileBackendTest.php.

References $backend.

◆ hasThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::hasThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 470 of file FileBackendTest.php.

References $backend.

◆ invalidEntryIdentifiers()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::invalidEntryIdentifiers ( )

Definition at line 327 of file FileBackendTest.php.

◆ removeReallyRemovesACacheEntry()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::removeReallyRemovesACacheEntry ( )
Test:

Definition at line 306 of file FileBackendTest.php.

References $backend.

◆ removeThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::removeThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 481 of file FileBackendTest.php.

References $backend.

◆ requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceDoesNotCheckExpiryTimeIfBackendIsFrozen ( )
Test:

Definition at line 531 of file FileBackendTest.php.

References $backend.

◆ requireOnceIncludesAndReturnsResultOfIncludedPhpFile()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceIncludesAndReturnsResultOfIncludedPhpFile ( )
Test:

Definition at line 511 of file FileBackendTest.php.

References $backend.

◆ requireOnceThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::requireOnceThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 497 of file FileBackendTest.php.

References $backend.

◆ setAlsoSavesSpecifiedTags()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setAlsoSavesSpecifiedTags ( )
Test:

Definition at line 149 of file FileBackendTest.php.

References $backend.

◆ setCacheDetectsAndLoadsAFrozenCache()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDetectsAndLoadsAFrozenCache ( )
Test:

Definition at line 171 of file FileBackendTest.php.

References $backend.

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsoluteDottedPathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsoluteDottedPathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsolutePathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsAbsolutePathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsAbsolutePathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativeDottedPathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativeDottedPathWithTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativePathWithoutTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativePathWithoutTrailingSlash ( )

◆ setCacheDirectoryAllowsRelativePathWithTrailingSlash()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryAllowsRelativePathWithTrailingSlash ( )

◆ setCacheDirectoryThrowsExceptionOnNonWritableDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setCacheDirectoryThrowsExceptionOnNonWritableDirectory ( )
Test:

Definition at line 49 of file FileBackendTest.php.

References $backend.

◆ setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setOverwritesAnAlreadyExistingCacheEntryForTheSameIdentifier ( )
Test:

Definition at line 125 of file FileBackendTest.php.

References $backend.

◆ setReallySavesToTheSpecifiedDirectory()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setReallySavesToTheSpecifiedDirectory ( )
Test:

Definition at line 103 of file FileBackendTest.php.

References $backend.

◆ setThrowsExceptionForInvalidIdentifier()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setThrowsExceptionForInvalidIdentifier (   $identifier)
Test:
invalidEntryIdentifiers

Definition at line 349 of file FileBackendTest.php.

References $backend.

◆ setThrowsExceptionIfDataIsNotAString()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setThrowsExceptionIfDataIsNotAString ( )
Test:

Definition at line 90 of file FileBackendTest.php.

References $backend.

◆ setUp()

TYPO3\CMS\Core\Tests\Unit\Cache\Backend\FileBackendTest::setUp ( )

Sets up this testcase

Returns
void

Definition at line 36 of file FileBackendTest.php.