PathTest
extends PHPUnit_Framework_TestCase
in package
Tags
Table of Contents
- $storedEnv : mixed
- provideAbsolutePathsWithDifferentRoots() : mixed
- provideCanonicalizationTests() : mixed
- provideChangeExtensionTests() : mixed
- provideGetDirectoryTests() : mixed
- provideGetExtensionTests() : mixed
- provideGetFilenameTests() : mixed
- provideGetFilenameWithoutExtensionTests() : mixed
- provideGetLongestCommonBasePathTests() : mixed
- provideGetRootTests() : mixed
- provideHasExtensionTests() : mixed
- provideIsAbsolutePathTests() : mixed
- provideIsBasePathTests() : mixed
- provideIsLocalTests() : mixed
- provideJoinTests() : mixed
- provideMakeAbsoluteTests() : mixed
- provideMakeRelativeTests() : mixed
- providePathTests() : mixed
- setUp() : mixed
- tearDown() : mixed
- testCanonicalize() : mixed
- testCanonicalizeFailsIfInvalidPath() : mixed
- testChangeExtension() : mixed
- testChangeExtensionFailsIfInvalidExtension() : mixed
- testChangeExtensionFailsIfInvalidPath() : mixed
- testGetDirectory() : mixed
- testGetDirectoryFailsIfInvalidPath() : mixed
- testGetExtension() : mixed
- testGetExtensionFailsIfInvalidPath() : mixed
- testGetFilename() : mixed
- testGetFilenameFailsIfInvalidPath() : mixed
- testGetFilenameWithoutExtension() : mixed
- testGetFilenameWithoutExtensionFailsIfInvalidExtension() : mixed
- testGetFilenameWithoutExtensionFailsIfInvalidPath() : mixed
- testGetHomeDirectoryFailsIfNotSupportedOperationSystem() : mixed
- testGetHomeDirectoryForUnix() : mixed
- testGetHomeDirectoryForWindows() : mixed
- testGetLongestCommonBasePath() : mixed
- testGetLongestCommonBasePathFailsIfInvalidPath() : mixed
- testGetRoot() : mixed
- testGetRootFailsIfInvalidPath() : mixed
- testHasExtension() : mixed
- testHasExtensionFailsIfInvalidExtension() : mixed
- testHasExtensionFailsIfInvalidPath() : mixed
- testIsAbsolute() : mixed
- testIsAbsoluteFailsIfInvalidPath() : mixed
- testIsBasePath() : mixed
- testIsBasePathFailsIfInvalidBasePath() : mixed
- testIsBasePathFailsIfInvalidPath() : mixed
- testIsLocal() : mixed
- testIsLocalFailsIfInvalidPath() : mixed
- testIsRelative() : mixed
- testIsRelativeFailsIfInvalidPath() : mixed
- testJoin() : mixed
- testJoinFailsIfInvalidPath() : mixed
- testJoinVarArgs() : mixed
- testMakeAbsolute() : mixed
- testMakeAbsoluteDoesNotFailIfDifferentRoot() : mixed
- testMakeAbsoluteFailsIfBasePathEmpty() : mixed
- testMakeAbsoluteFailsIfBasePathNotAbsolute() : mixed
- testMakeAbsoluteFailsIfBasePathNull() : mixed
- testMakeAbsoluteFailsIfInvalidBasePath() : mixed
- testMakeAbsoluteFailsIfInvalidPath() : mixed
- testMakeRelative() : mixed
- testMakeRelativeFailsIfAbsolutePathAndBasePathEmpty() : mixed
- testMakeRelativeFailsIfAbsolutePathAndBasePathNotAbsolute() : mixed
- testMakeRelativeFailsIfBasePathNull() : mixed
- testMakeRelativeFailsIfDifferentRoot() : mixed
- testMakeRelativeFailsIfInvalidBasePath() : mixed
- testMakeRelativeFailsIfInvalidPath() : mixed
- testNormalize() : mixed
- testNormalizeFailsIfNoString() : mixed
Properties
$storedEnv
protected
mixed
$storedEnv
= array()
Methods
provideAbsolutePathsWithDifferentRoots()
public
provideAbsolutePathsWithDifferentRoots() : mixed
Return values
mixed —provideCanonicalizationTests()
public
provideCanonicalizationTests() : mixed
Return values
mixed —provideChangeExtensionTests()
public
provideChangeExtensionTests() : mixed
Return values
mixed —provideGetDirectoryTests()
public
provideGetDirectoryTests() : mixed
Return values
mixed —provideGetExtensionTests()
public
provideGetExtensionTests() : mixed
Return values
mixed —provideGetFilenameTests()
public
provideGetFilenameTests() : mixed
Return values
mixed —provideGetFilenameWithoutExtensionTests()
public
provideGetFilenameWithoutExtensionTests() : mixed
Return values
mixed —provideGetLongestCommonBasePathTests()
public
provideGetLongestCommonBasePathTests() : mixed
Return values
mixed —provideGetRootTests()
public
provideGetRootTests() : mixed
Return values
mixed —provideHasExtensionTests()
public
provideHasExtensionTests() : mixed
Return values
mixed —provideIsAbsolutePathTests()
public
provideIsAbsolutePathTests() : mixed
Return values
mixed —provideIsBasePathTests()
public
provideIsBasePathTests() : mixed
Return values
mixed —provideIsLocalTests()
public
provideIsLocalTests() : mixed
Return values
mixed —provideJoinTests()
public
provideJoinTests() : mixed
Return values
mixed —provideMakeAbsoluteTests()
public
provideMakeAbsoluteTests() : mixed
Return values
mixed —provideMakeRelativeTests()
public
provideMakeRelativeTests() : mixed
Return values
mixed —providePathTests()
public
providePathTests() : mixed
Return values
mixed —setUp()
public
setUp() : mixed
Return values
mixed —tearDown()
public
tearDown() : mixed
Return values
mixed —testCanonicalize()
public
testCanonicalize(mixed $path, mixed $canonicalized) : mixed
Parameters
- $path : mixed
- $canonicalized : mixed
Tags
Return values
mixed —testCanonicalizeFailsIfInvalidPath()
public
testCanonicalizeFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testChangeExtension()
public
testChangeExtension(mixed $path, mixed $extension, mixed $pathExpected) : mixed
Parameters
- $path : mixed
- $extension : mixed
- $pathExpected : mixed
Tags
Return values
mixed —testChangeExtensionFailsIfInvalidExtension()
public
testChangeExtensionFailsIfInvalidExtension() : mixed
Tags
Return values
mixed —testChangeExtensionFailsIfInvalidPath()
public
testChangeExtensionFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetDirectory()
public
testGetDirectory(mixed $path, mixed $directory) : mixed
Parameters
- $path : mixed
- $directory : mixed
Tags
Return values
mixed —testGetDirectoryFailsIfInvalidPath()
public
testGetDirectoryFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetExtension()
public
testGetExtension(mixed $path, mixed $forceLowerCase, mixed $extension) : mixed
Parameters
- $path : mixed
- $forceLowerCase : mixed
- $extension : mixed
Tags
Return values
mixed —testGetExtensionFailsIfInvalidPath()
public
testGetExtensionFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetFilename()
public
testGetFilename(mixed $path, mixed $filename) : mixed
Parameters
- $path : mixed
- $filename : mixed
Tags
Return values
mixed —testGetFilenameFailsIfInvalidPath()
public
testGetFilenameFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetFilenameWithoutExtension()
public
testGetFilenameWithoutExtension(mixed $path, mixed $extension, mixed $filename) : mixed
Parameters
- $path : mixed
- $extension : mixed
- $filename : mixed
Tags
Return values
mixed —testGetFilenameWithoutExtensionFailsIfInvalidExtension()
public
testGetFilenameWithoutExtensionFailsIfInvalidExtension() : mixed
Tags
Return values
mixed —testGetFilenameWithoutExtensionFailsIfInvalidPath()
public
testGetFilenameWithoutExtensionFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetHomeDirectoryFailsIfNotSupportedOperationSystem()
public
testGetHomeDirectoryFailsIfNotSupportedOperationSystem() : mixed
Tags
Return values
mixed —testGetHomeDirectoryForUnix()
public
testGetHomeDirectoryForUnix() : mixed
Return values
mixed —testGetHomeDirectoryForWindows()
public
testGetHomeDirectoryForWindows() : mixed
Return values
mixed —testGetLongestCommonBasePath()
public
testGetLongestCommonBasePath(array<string|int, mixed> $paths, mixed $basePath) : mixed
Parameters
- $paths : array<string|int, mixed>
- $basePath : mixed
Tags
Return values
mixed —testGetLongestCommonBasePathFailsIfInvalidPath()
public
testGetLongestCommonBasePathFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testGetRoot()
public
testGetRoot(mixed $path, mixed $root) : mixed
Parameters
- $path : mixed
- $root : mixed
Tags
Return values
mixed —testGetRootFailsIfInvalidPath()
public
testGetRootFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testHasExtension()
public
testHasExtension(mixed $hasExtension, mixed $path, mixed $extension, mixed $ignoreCase) : mixed
Parameters
- $hasExtension : mixed
- $path : mixed
- $extension : mixed
- $ignoreCase : mixed
Tags
Return values
mixed —testHasExtensionFailsIfInvalidExtension()
public
testHasExtensionFailsIfInvalidExtension() : mixed
Tags
Return values
mixed —testHasExtensionFailsIfInvalidPath()
public
testHasExtensionFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testIsAbsolute()
public
testIsAbsolute(mixed $path, mixed $isAbsolute) : mixed
Parameters
- $path : mixed
- $isAbsolute : mixed
Tags
Return values
mixed —testIsAbsoluteFailsIfInvalidPath()
public
testIsAbsoluteFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testIsBasePath()
public
testIsBasePath(mixed $path, mixed $ofPath, mixed $result) : mixed
Parameters
- $path : mixed
- $ofPath : mixed
- $result : mixed
Tags
Return values
mixed —testIsBasePathFailsIfInvalidBasePath()
public
testIsBasePathFailsIfInvalidBasePath() : mixed
Tags
Return values
mixed —testIsBasePathFailsIfInvalidPath()
public
testIsBasePathFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testIsLocal()
public
testIsLocal(mixed $path, mixed $isLocal) : mixed
Parameters
- $path : mixed
- $isLocal : mixed
Tags
Return values
mixed —testIsLocalFailsIfInvalidPath()
public
testIsLocalFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testIsRelative()
public
testIsRelative(mixed $path, mixed $isAbsolute) : mixed
Parameters
- $path : mixed
- $isAbsolute : mixed
Tags
Return values
mixed —testIsRelativeFailsIfInvalidPath()
public
testIsRelativeFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testJoin()
public
testJoin(mixed $path1, mixed $path2, mixed $result) : mixed
Parameters
- $path1 : mixed
- $path2 : mixed
- $result : mixed
Tags
Return values
mixed —testJoinFailsIfInvalidPath()
public
testJoinFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testJoinVarArgs()
public
testJoinVarArgs() : mixed
Return values
mixed —testMakeAbsolute()
public
testMakeAbsolute(mixed $relativePath, mixed $basePath, mixed $absolutePath) : mixed
Parameters
- $relativePath : mixed
- $basePath : mixed
- $absolutePath : mixed
Tags
Return values
mixed —testMakeAbsoluteDoesNotFailIfDifferentRoot()
public
testMakeAbsoluteDoesNotFailIfDifferentRoot(mixed $basePath, mixed $absolutePath) : mixed
Parameters
- $basePath : mixed
- $absolutePath : mixed
Tags
Return values
mixed —testMakeAbsoluteFailsIfBasePathEmpty()
public
testMakeAbsoluteFailsIfBasePathEmpty() : mixed
Tags
Return values
mixed —testMakeAbsoluteFailsIfBasePathNotAbsolute()
public
testMakeAbsoluteFailsIfBasePathNotAbsolute() : mixed
Tags
Return values
mixed —testMakeAbsoluteFailsIfBasePathNull()
public
testMakeAbsoluteFailsIfBasePathNull() : mixed
Tags
Return values
mixed —testMakeAbsoluteFailsIfInvalidBasePath()
public
testMakeAbsoluteFailsIfInvalidBasePath() : mixed
Tags
Return values
mixed —testMakeAbsoluteFailsIfInvalidPath()
public
testMakeAbsoluteFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testMakeRelative()
public
testMakeRelative(mixed $absolutePath, mixed $basePath, mixed $relativePath) : mixed
Parameters
- $absolutePath : mixed
- $basePath : mixed
- $relativePath : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfAbsolutePathAndBasePathEmpty()
public
testMakeRelativeFailsIfAbsolutePathAndBasePathEmpty() : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfAbsolutePathAndBasePathNotAbsolute()
public
testMakeRelativeFailsIfAbsolutePathAndBasePathNotAbsolute() : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfBasePathNull()
public
testMakeRelativeFailsIfBasePathNull() : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfDifferentRoot()
public
testMakeRelativeFailsIfDifferentRoot(mixed $absolutePath, mixed $basePath) : mixed
Parameters
- $absolutePath : mixed
- $basePath : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfInvalidBasePath()
public
testMakeRelativeFailsIfInvalidBasePath() : mixed
Tags
Return values
mixed —testMakeRelativeFailsIfInvalidPath()
public
testMakeRelativeFailsIfInvalidPath() : mixed
Tags
Return values
mixed —testNormalize()
public
testNormalize() : mixed
Return values
mixed —testNormalizeFailsIfNoString()
public
testNormalizeFailsIfNoString() : mixed