mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
minor #4345 Add fixture filename as key (ruudk)
This PR was merged into the 3.x branch.
Discussion
----------
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.

Commits
-------
633d70103d Add fixture filename as key
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