Add fixture filename as key

This way, it's easier to see which test failed and what the file was.

In PHPStorm this is visualized very nice.
This commit is contained in:
Ruud Kamphuis
2024-09-26 13:47:17 +02:00
parent be308bc5ac
commit 633d70103d
+1 -1
View File
@@ -146,7 +146,7 @@ abstract class IntegrationTestCase extends TestCase
throw new \InvalidArgumentException(\sprintf('Test "%s" is not valid.', str_replace($fixturesDir.'/', '', $file)));
}
$tests[] = [str_replace($fixturesDir.'/', '', $file), $message, $condition, $templates, $exception, $outputs, $deprecation];
$tests[str_replace($fixturesDir.'/', '', $file)] = [str_replace($fixturesDir.'/', '', $file), $message, $condition, $templates, $exception, $outputs, $deprecation];
}
if ($legacyTests && !$tests) {