BaseFileCacheTest
extends CacheTest
in package
Base testcase class for all Doctrine testcases.
Table of Contents
- $directory : mixed
- getPathLengthsToTest() : mixed
- provideCacheIds() : array<string|int, mixed>
- Returns cache ids with special characters that should still work.
- provideDataToCache() : mixed
- testCacheKeyIsCaseSensitive() : mixed
- testCanHandleSpecialCacheIds() : mixed
- testDeleteAll() : mixed
- testDeleteAllAndNamespaceVersioningBetweenCaches() : mixed
- testDeleteAllNamespace() : mixed
- testDeleteIsSuccessfulWhenKeyDoesNotExist() : mixed
- testFetchMultiple() : mixed
- testFetchMultipleWithNoKeys() : mixed
- testFlushAll() : mixed
- testFlushAllAndNamespaceVersioningBetweenCaches() : mixed
- testFlushAllRemovesBalancingDirectories() : mixed
- testGetStats() : mixed
- testLifetime() : mixed
- testLongLifetime() : mixed
- testNamespace() : mixed
- testNoCacheIdCollisions() : mixed
- testNoExpire() : mixed
- testSaveMultiple() : mixed
- testSaveReturnsTrueWithAndWithoutTTlSet() : mixed
- testSetContainsFetchDelete() : mixed
- testUpdateExistingEntry() : mixed
- testValueThatIsFalseBooleanIsProperlyRetrieved() : mixed
- testWindowsPathLengthLimitIsCorrectlyHandled() : mixed
- _getCacheDriver() : CacheProvider
- isSharedStorage() : bool
- Return whether multiple cache providers share the same storage.
- setUp() : mixed
- tearDown() : mixed
- getBasePathForWindowsPathLengthTests() : mixed
- getKeyAndPathFittingLength() : array<string|int, mixed>
Properties
$directory
protected
mixed
$directory
Methods
getPathLengthsToTest()
public
getPathLengthsToTest() : mixed
Return values
mixed —provideCacheIds()
Returns cache ids with special characters that should still work.
public
provideCacheIds() : array<string|int, mixed>
For example, the characters :/<>"*?| are not valid in Windows filenames. So they must be encoded properly. Each cache id should be considered different from the others.
Return values
array<string|int, mixed> —provideDataToCache()
public
provideDataToCache() : mixed
Return values
mixed —testCacheKeyIsCaseSensitive()
public
testCacheKeyIsCaseSensitive() : mixed
Return values
mixed —testCanHandleSpecialCacheIds()
public
testCanHandleSpecialCacheIds(mixed $id) : mixed
Parameters
- $id : mixed
Tags
Return values
mixed —testDeleteAll()
public
testDeleteAll() : mixed
Return values
mixed —testDeleteAllAndNamespaceVersioningBetweenCaches()
public
testDeleteAllAndNamespaceVersioningBetweenCaches() : mixed
Return values
mixed —testDeleteAllNamespace()
public
testDeleteAllNamespace() : mixed
Return values
mixed —testDeleteIsSuccessfulWhenKeyDoesNotExist()
public
testDeleteIsSuccessfulWhenKeyDoesNotExist() : mixed
Return values
mixed —testFetchMultiple()
public
testFetchMultiple() : mixed
Return values
mixed —testFetchMultipleWithNoKeys()
public
testFetchMultipleWithNoKeys() : mixed
Return values
mixed —testFlushAll()
public
testFlushAll() : mixed
Return values
mixed —testFlushAllAndNamespaceVersioningBetweenCaches()
public
testFlushAllAndNamespaceVersioningBetweenCaches() : mixed
Return values
mixed —testFlushAllRemovesBalancingDirectories()
public
testFlushAllRemovesBalancingDirectories() : mixed
Return values
mixed —testGetStats()
public
testGetStats() : mixed
Tags
Return values
mixed —testLifetime()
public
testLifetime() : mixed
Return values
mixed —testLongLifetime()
public
testLongLifetime() : mixed
Return values
mixed —testNamespace()
public
testNamespace() : mixed
Return values
mixed —testNoCacheIdCollisions()
public
testNoCacheIdCollisions() : mixed
Return values
mixed —testNoExpire()
public
testNoExpire() : mixed
Return values
mixed —testSaveMultiple()
public
testSaveMultiple() : mixed
Return values
mixed —testSaveReturnsTrueWithAndWithoutTTlSet()
public
testSaveReturnsTrueWithAndWithoutTTlSet() : mixed
Return values
mixed —testSetContainsFetchDelete()
public
testSetContainsFetchDelete(mixed $value) : mixed
Parameters
- $value : mixed
Tags
Return values
mixed —testUpdateExistingEntry()
public
testUpdateExistingEntry(mixed $value) : mixed
Parameters
- $value : mixed
Tags
Return values
mixed —testValueThatIsFalseBooleanIsProperlyRetrieved()
public
testValueThatIsFalseBooleanIsProperlyRetrieved() : mixed
Return values
mixed —testWindowsPathLengthLimitIsCorrectlyHandled()
public
testWindowsPathLengthLimitIsCorrectlyHandled(int $length, bool $pathShouldBeHashed) : mixed
Parameters
- $length : int
- $pathShouldBeHashed : bool
Tags
Return values
mixed —_getCacheDriver()
protected
abstract _getCacheDriver() : CacheProvider
Return values
CacheProvider —isSharedStorage()
Return whether multiple cache providers share the same storage.
protected
isSharedStorage() : bool
This is used for skipping certain tests for shared storage behavior.
Return values
bool —setUp()
protected
setUp() : mixed
Return values
mixed —tearDown()
protected
tearDown() : mixed
Return values
mixed —getBasePathForWindowsPathLengthTests()
private
static getBasePathForWindowsPathLengthTests(mixed $pathLength) : mixed
Parameters
- $pathLength : mixed
Return values
mixed —getKeyAndPathFittingLength()
private
static getKeyAndPathFittingLength(int $length, string $basePath) : array<string|int, mixed>
Parameters
- $length : int
- $basePath : string