From 29edbed252c1a13d15afdf946e985c9c7373c5aa Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 11 May 2010 11:52:25 +0200 Subject: [PATCH] added the fixture file in error message to ease debugging tests --- test/Twig/Tests/integrationTest.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/test/Twig/Tests/integrationTest.php b/test/Twig/Tests/integrationTest.php index 1932c5d..c193575 100644 --- a/test/Twig/Tests/integrationTest.php +++ b/test/Twig/Tests/integrationTest.php @@ -52,7 +52,7 @@ class Twig_Tests_IntegrationTest extends PHPUnit_Framework_TestCase $output = trim($template->render(eval($match[1].';')), "\n "); $expected = trim($match[2], "\n "); - $this->assertEquals($expected, $output, $message); + $this->assertEquals($expected, $output, $message.' (in '.str_replace(self::$fixturesDir, '', $file).')'); if ($output != $expected) { echo 'Compiled template that failed:'; -- 1.7.2.5