diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index 502bb083..c09730a7 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -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');