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

Public Member Functions

 isCommonPrefixResolvedCorrectly (array $paths, $expected)
 
 isCommonPrefixResolvedCorrectlyDataProvider ()
 
 isRelativePathResolvedCorrectly ($source, $target, $expected)
 
 isRelativePathResolvedCorrectlyDataProvider ()
 
 isTrailingSeparatorSanitizedCorrectly ($path, $separator, $expected)
 
 isTrailingSeparatorSanitizedCorrectlyDataProvider ()
 
 getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider ()
 
 getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly ($baseFileName, $includeFileName, $expectedFileName)
 
 getCanonicalPathCorrectlyCleansPathDataProvider ()
 
 getCanonicalPathCorrectlyCleansPath ($inputName, $expectedResult)
 

Additional Inherited Members

- 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= '')
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class

Definition at line 21 of file PathUtilityTest.php.

Member Function Documentation

getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly (   $baseFileName,
  $includeFileName,
  $expectedFileName 
)
Parameters
$baseFileName
$includeFileName
$expectedFileName
Test:
getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider

Definition at line 241 of file PathUtilityTest.php.

References PathUtility\getAbsolutePathOfRelativeReferencedFileOrPath().

getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider ( )

Data Provider for getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly

Returns
array

Definition at line 198 of file PathUtilityTest.php.

getCanonicalPathCorrectlyCleansPath (   $inputName,
  $expectedResult 
)
Test:
getCanonicalPathCorrectlyCleansPathDataProvider

Definition at line 346 of file PathUtilityTest.php.

References PathUtility\getCanonicalPath().

getCanonicalPathCorrectlyCleansPathDataProvider ( )

Data provider for getCanonicalPathCorrectlyCleansPath

Returns
array

Definition at line 252 of file PathUtilityTest.php.

isCommonPrefixResolvedCorrectly ( array  $paths,
  $expected 
)
Parameters
array$paths
string$expectedisCommonPrefixResolvedCorrectlyDataProvider
Test:

Definition at line 29 of file PathUtilityTest.php.

References PathUtility\getCommonPrefix().

isCommonPrefixResolvedCorrectlyDataProvider ( )
Returns
array

Definition at line 38 of file PathUtilityTest.php.

isRelativePathResolvedCorrectly (   $source,
  $target,
  $expected 
)
Parameters
string$source
string$target
string$expectedisRelativePathResolvedCorrectlyDataProvider
Test:

Definition at line 123 of file PathUtilityTest.php.

References PathUtility\getRelativePath().

isRelativePathResolvedCorrectlyDataProvider ( )
Returns
array

Definition at line 132 of file PathUtilityTest.php.

isTrailingSeparatorSanitizedCorrectly (   $path,
  $separator,
  $expected 
)
Parameters
string$path
string$separator
string$expectedisTrailingSeparatorSanitizedCorrectlyDataProvider
Test:

Definition at line 175 of file PathUtilityTest.php.

References PathUtility\sanitizeTrailingSeparator().

isTrailingSeparatorSanitizedCorrectlyDataProvider ( )
Returns
array

Definition at line 184 of file PathUtilityTest.php.