if ($isFilesystemCaseSensitive === null) {
$testFilePath = __FILE__;
- $invertedCase = \strtr(
- $testFilePath,
- "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
- "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ $invertedCase = \sprintf(
+ '%s/%s',
+ \dirname($testFilePath),
+ \strtr(
+ \basename($testFilePath),
+ "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",
+ "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ )
);
$isFilesystemCaseSensitive = !\file_exists($invertedCase);