From: Fabien Potencier Date: Tue, 11 May 2010 09:52:25 +0000 (+0200) Subject: added the fixture file in error message to ease debugging tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=29edbed252c1a13d15afdf946e985c9c7373c5aa;p=konrad%2Ftwig.git added the fixture file in error message to ease debugging tests --- 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:';