Merge pull request #721 from faissaloux/fix-dirty-files-filter

[2.x] Fix `--dirty` not working on Windows
This commit is contained in:
Nuno Maduro
2023-03-22 09:43:13 +00:00
committed by GitHub

View File

@ -32,6 +32,7 @@ final class GitDirtyTestCaseFilter implements TestCaseFilter
assert(is_array($this->changedFiles));
$relativePath = str_replace($this->projectRoot, '', $testCaseFilename);
$relativePath = str_replace(DIRECTORY_SEPARATOR, '/', $relativePath);
if (str_starts_with($relativePath, '/')) {
$relativePath = substr($relativePath, 1);