fix dirty files filter

This commit is contained in:
faissaloux
2023-03-21 23:48:22 +00:00
parent 43894afa18
commit b94b8c6a4f

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);