mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
patch addslashes for windows paths
This commit is contained in:
@ -171,7 +171,7 @@ final class TestCaseFactory
|
||||
}, $filename);
|
||||
}
|
||||
|
||||
$filename = addslashes((string) realpath($filename));
|
||||
$filename = str_replace('\\\\', '\\', addslashes((string) realpath($filename)));
|
||||
$rootPath = TestSuite::getInstance()->rootPath;
|
||||
$relativePath = str_replace($rootPath . DIRECTORY_SEPARATOR, '', $filename);
|
||||
$relativePath = dirname(ucfirst($relativePath)) . DIRECTORY_SEPARATOR . basename($relativePath, '.php');
|
||||
|
||||
Reference in New Issue
Block a user