‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest:

Public Member Functions

 isCommonPrefixResolvedCorrectly (array $paths, $expected)
 
 isRelativePathResolvedCorrectly ($source, $target, $expected)
 
 isTrailingSeparatorSanitizedCorrectly ($path, $separator, $expected)
 
 getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly (string $baseFileName, string $includeFileName, string $expectedFileName)
 
 getCanonicalPathCorrectlyCleansPath (string $inputName, string $expectedResult)
 
 dirnameDuringBootstrapCorrectlyFetchesParent (string $inputPath, string $expectedResult)
 
 basenameDuringBootstrapCorrectlyFetchesBasename (string $inputPath, string $expectedResult)
 
 isAbsolutePathRespectsAllOperatingSystems (string $inputPath, bool $isWindows, bool $expectedResult)
 
 hasProtocolAndScheme (string $url, bool $result)
 
 allowedAdditionalPathsAreEvaluated (mixed $lockRootPath, string $path, bool $expectation)
 

Static Public Member Functions

static isCommonPrefixResolvedCorrectlyDataProvider ()
 
static isRelativePathResolvedCorrectlyDataProvider ()
 
static isTrailingSeparatorSanitizedCorrectlyDataProvider ()
 
static getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider ()
 
static string[][] getCanonicalPathCorrectlyCleansPathDataProvider ()
 
static string[][] dirnameDuringBootstrapCorrectlyFetchesParentDataProvider ()
 
static basenameDuringBootstrapCorrectlyFetchesBasenameDataProvider ()
 
static array[] isAbsolutePathRespectsAllOperatingSystemsPathDataProvider ()
 
static hasProtocolAndSchemeDataProvider ()
 
static allowedAdditionalPathsAreEvaluatedDataProvider ()
 

Protected Attributes

bool $backupEnvironment = true
 

Detailed Description

Todo:
‪Defining the method parameter types further leads to test bench errors

Definition at line 29 of file PathUtilityTest.php.

Member Function Documentation

◆ allowedAdditionalPathsAreEvaluated()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::allowedAdditionalPathsAreEvaluated ( mixed  $lockRootPath,
string  $path,
bool  $expectation 
)

◆ allowedAdditionalPathsAreEvaluatedDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::allowedAdditionalPathsAreEvaluatedDataProvider ( )
static

Definition at line 554 of file PathUtilityTest.php.

◆ basenameDuringBootstrapCorrectlyFetchesBasename()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::basenameDuringBootstrapCorrectlyFetchesBasename ( string  $inputPath,
string  $expectedResult 
)

◆ basenameDuringBootstrapCorrectlyFetchesBasenameDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::basenameDuringBootstrapCorrectlyFetchesBasenameDataProvider ( )
static

Data provider for basenameDuringBootstrapCorrectlyFetchesBasename

Definition at line 419 of file PathUtilityTest.php.

◆ dirnameDuringBootstrapCorrectlyFetchesParent()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::dirnameDuringBootstrapCorrectlyFetchesParent ( string  $inputPath,
string  $expectedResult 
)

◆ dirnameDuringBootstrapCorrectlyFetchesParentDataProvider()

static string [][] TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::dirnameDuringBootstrapCorrectlyFetchesParentDataProvider ( )
static

Data provider for dirnameDuringBootstrapCorrectlyFetchesParent

Returns
‪string[][]

Definition at line 384 of file PathUtilityTest.php.

◆ getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly ( string  $baseFileName,
string  $includeFileName,
string  $expectedFileName 
)

◆ getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectlyDataProvider ( )
static

Data Provider for getAbsolutePathOfRelativeReferencedFileOrPathResolvesFileCorrectly

Definition at line 210 of file PathUtilityTest.php.

◆ getCanonicalPathCorrectlyCleansPath()

◆ getCanonicalPathCorrectlyCleansPathDataProvider()

static string [][] TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::getCanonicalPathCorrectlyCleansPathDataProvider ( )
static

Data provider for getCanonicalPathCorrectlyCleansPath

Returns
‪string[][]

Definition at line 259 of file PathUtilityTest.php.

◆ hasProtocolAndScheme()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::hasProtocolAndScheme ( string  $url,
bool  $result 
)

◆ hasProtocolAndSchemeDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::hasProtocolAndSchemeDataProvider ( )
static

Definition at line 529 of file PathUtilityTest.php.

◆ isAbsolutePathRespectsAllOperatingSystems()

◆ isAbsolutePathRespectsAllOperatingSystemsPathDataProvider()

static array [] TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isAbsolutePathRespectsAllOperatingSystemsPathDataProvider ( )
static

Data provider for isAbsolutePathRespectsAllOperatingSystems

Returns
‪array[]

Definition at line 456 of file PathUtilityTest.php.

◆ isCommonPrefixResolvedCorrectly()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isCommonPrefixResolvedCorrectly ( array  $paths,
  $expected 
)
Parameters
string$expected

Definition at line 38 of file PathUtilityTest.php.

References TYPO3\CMS\Core\Utility\PathUtility\getCommonPrefix().

◆ isCommonPrefixResolvedCorrectlyDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isCommonPrefixResolvedCorrectlyDataProvider ( )
static

Definition at line 44 of file PathUtilityTest.php.

◆ isRelativePathResolvedCorrectly()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isRelativePathResolvedCorrectly (   $source,
  $target,
  $expected 
)
Parameters
string$source
string$target
string$expected

Definition at line 143 of file PathUtilityTest.php.

References TYPO3\CMS\Core\Utility\PathUtility\getRelativePath().

◆ isRelativePathResolvedCorrectlyDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isRelativePathResolvedCorrectlyDataProvider ( )
static

◆ isTrailingSeparatorSanitizedCorrectly()

TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isTrailingSeparatorSanitizedCorrectly (   $path,
  $separator,
  $expected 
)
Parameters
string$path
string$separator
string$expected

Definition at line 192 of file PathUtilityTest.php.

References TYPO3\CMS\Core\Utility\PathUtility\sanitizeTrailingSeparator().

◆ isTrailingSeparatorSanitizedCorrectlyDataProvider()

static TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::isTrailingSeparatorSanitizedCorrectlyDataProvider ( )
static

Definition at line 198 of file PathUtilityTest.php.

Member Data Documentation

◆ $backupEnvironment

bool TYPO3\CMS\Core\Tests\Unit\Utility\PathUtilityTest::$backupEnvironment = true
protected

Definition at line 31 of file PathUtilityTest.php.