enable windows tests

This commit is contained in:
Fabio Ivona
2023-01-15 10:41:49 +01:00
parent 6982b02d48
commit 94cef989d3
6 changed files with 18 additions and 13 deletions

View File

@ -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);
}
/**

View File

@ -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;
}