From bf31f2f7e01c6cf1aaf0a25cc84f13be61aa53e1 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 1 Jun 2010 14:24:56 +0200 Subject: [PATCH] made error messages in tests more explicit about where the error occurred --- test/Twig/Tests/integrationTest.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/test/Twig/Tests/integrationTest.php b/test/Twig/Tests/integrationTest.php index 3c7d854..091c9e5 100644 --- a/test/Twig/Tests/integrationTest.php +++ b/test/Twig/Tests/integrationTest.php @@ -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); -- 1.7.2.5