mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 12:26:30 +00:00
made error messages in tests more explicit about where the error occurred
This commit is contained in:
@@ -49,6 +49,8 @@ class Twig_Tests_IntegrationTest extends PHPUnit_Framework_TestCase
|
||||
$e->setFilename(str_replace(self::$fixturesDir.'/', '', $file));
|
||||
|
||||
throw $e;
|
||||
} catch (Exception $e) {
|
||||
throw new Twig_Error($e->getMessage().' (in '.str_replace(self::$fixturesDir, '', $file).')');
|
||||
}
|
||||
|
||||
preg_match_all('/--DATA--(.*?)--EXPECT--(.*?)(?=\-\-DATA\-\-|$)/s', $test, $matches, PREG_SET_ORDER);
|
||||
|
||||
Reference in New Issue
Block a user