mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
enable windows tests
This commit is contained in:
@ -175,7 +175,7 @@ final class Converter
|
||||
private function toRelativePath(string $path): string
|
||||
{
|
||||
// Remove cwd from the path.
|
||||
return str_replace("$this->rootPath/", '', $path);
|
||||
return str_replace("$this->rootPath".DIRECTORY_SEPARATOR, '', $path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -54,7 +54,9 @@ final class Backtrace
|
||||
foreach (debug_backtrace(self::BACKTRACE_OPTIONS) as $trace) {
|
||||
assert(array_key_exists(self::FILE, $trace));
|
||||
|
||||
if (Str::endsWith($trace['file'], 'Bootstrappers/BootFiles.php') || Str::endsWith($trace[self::FILE], 'overrides/Runner/TestSuiteLoader.php')) {
|
||||
$traceFile = str_replace(DIRECTORY_SEPARATOR, '/', $trace[self::FILE]);
|
||||
|
||||
if (Str::endsWith($traceFile, 'Bootstrappers/BootFiles.php') || Str::endsWith($traceFile, 'overrides/Runner/TestSuiteLoader.php')) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user