FileCacheTest
extends DoctrineTestCase
in package
Base testcase class for all Doctrine testcases.
Tags
Table of Contents
- WIN_MAX_PATH_LEN = 258
- $driver : FileCache
- getBasePathForWindowsPathLengthTests() : mixed
- getKeyAndPathFittingLength() : array<string|int, mixed>
- getPathLengthsToTest() : mixed
- testFileExtensionCorrectlyEscaped() : mixed
- testFileExtensionSlashCorrectlyEscaped() : mixed
- testFilenameShouldCreateThePathWithOneSubDirectory() : mixed
- testGetDirectoryReturnsRealpathDirectoryString() : mixed
- testGetExtensionReturnsExtensionString() : mixed
- testNonIntUmaskThrowsInvalidArgumentException() : mixed
- testWindowsPathLengthLimitationsAreCorrectlyRespected() : mixed
- setUp() : mixed
Constants
WIN_MAX_PATH_LEN
public
mixed
WIN_MAX_PATH_LEN
= 258
Properties
$driver
private
FileCache
$driver
Methods
getBasePathForWindowsPathLengthTests()
public
static getBasePathForWindowsPathLengthTests(mixed $pathLength) : mixed
Parameters
- $pathLength : mixed
Return values
mixed —getKeyAndPathFittingLength()
public
static getKeyAndPathFittingLength(int $length, string $basePath) : array<string|int, mixed>
Parameters
- $length : int
- $basePath : string
Return values
array<string|int, mixed> —getPathLengthsToTest()
public
getPathLengthsToTest() : mixed
Return values
mixed —testFileExtensionCorrectlyEscaped()
public
testFileExtensionCorrectlyEscaped() : mixed
Return values
mixed —testFileExtensionSlashCorrectlyEscaped()
public
testFileExtensionSlashCorrectlyEscaped() : mixed
Tags
Return values
mixed —testFilenameShouldCreateThePathWithOneSubDirectory()
public
testFilenameShouldCreateThePathWithOneSubDirectory() : mixed
Return values
mixed —testGetDirectoryReturnsRealpathDirectoryString()
public
testGetDirectoryReturnsRealpathDirectoryString() : mixed
Return values
mixed —testGetExtensionReturnsExtensionString()
public
testGetExtensionReturnsExtensionString() : mixed
Return values
mixed —testNonIntUmaskThrowsInvalidArgumentException()
public
testNonIntUmaskThrowsInvalidArgumentException() : mixed
Return values
mixed —testWindowsPathLengthLimitationsAreCorrectlyRespected()
public
testWindowsPathLengthLimitationsAreCorrectlyRespected(int $length, bool $pathShouldBeHashed) : mixed
Parameters
- $length : int
- $pathShouldBeHashed : bool
Tags
Return values
mixed —setUp()
protected
setUp() : mixed