From: Fabien Potencier Date: Tue, 1 Jun 2010 12:24:56 +0000 (+0200) Subject: made error messages in tests more explicit about where the error occurred X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=bf31f2f7e01c6cf1aaf0a25cc84f13be61aa53e1;p=web%2Fkonrad%2Ftwig.git made error messages in tests more explicit about where the error occurred --- 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);