From 633d70103d96e56908fa3258580a6ebc6e9e9b7f Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 26 Sep 2024 13:47:17 +0200 Subject: [PATCH] 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. --- src/Test/IntegrationTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/IntegrationTestCase.php b/src/Test/IntegrationTestCase.php index b66c17fd2..8c9d41f2a 100644 --- a/src/Test/IntegrationTestCase.php +++ b/src/Test/IntegrationTestCase.php @@ -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) {