Skip to content

Commit

Permalink
Simplify storage of test description to reduce noise and save space
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Nov 14, 2018
1 parent 074a391 commit 1c5c39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Runner/ResultCacheExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ private function getTestName(string $test): string
{
$matches = [];

if (\preg_match('/^(?:\S+::)?(?<name>\S+)(?:(?<data> with data set (?:#\d+|"[^"]+"))\s\()?/', $test, $matches)) {
$test = $matches['name'] . ($matches['data'] ?? '');
if (\preg_match('/^(?<name>\S+::\S+)(?:(?<dataname> with data set (?:#\d+|"[^"]+"))\s\()?/', $test, $matches)) {
$test = $matches['name'] . ($matches['dataname'] ?? '');
}

return $test;
Expand Down

0 comments on commit 1c5c39d

Please sign in to comment.