diff --git a/src/Runner/ResultCacheExtension.php b/src/Runner/ResultCacheExtension.php index 80fbc190ef0..962bbc07ef9 100644 --- a/src/Runner/ResultCacheExtension.php +++ b/src/Runner/ResultCacheExtension.php @@ -95,8 +95,8 @@ private function getTestName(string $test): string { $matches = []; - if (\preg_match('/^(?:\S+::)?(?\S+)(?:(? with data set (?:#\d+|"[^"]+"))\s\()?/', $test, $matches)) { - $test = $matches['name'] . ($matches['data'] ?? ''); + if (\preg_match('/^(?\S+::\S+)(?:(? with data set (?:#\d+|"[^"]+"))\s\()?/', $test, $matches)) { + $test = $matches['name'] . ($matches['dataname'] ?? ''); } return $test;