mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-24 23:16:26 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user