diff --git a/.github/workflows/tests-levels-matrix.php b/.github/workflows/tests-levels-matrix.php index ecdb0cb964..fae513cf8c 100644 --- a/.github/workflows/tests-levels-matrix.php +++ b/.github/workflows/tests-levels-matrix.php @@ -19,7 +19,7 @@ [$className, $testName] = explode('::', $testCaseName, 2); $fileName = 'tests/'. str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php'; - $filter = str_replace('\\', '\\\\', $testCaseName); + $filter = preg_quote($testCaseName); $testFilters[] = sprintf("%s --filter %s", escapeshellarg($fileName), escapeshellarg($filter)); }