added the fixture file in error message to ease debugging tests
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 11 May 2010 09:52:25 +0000 (11:52 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 11 May 2010 09:52:25 +0000 (11:52 +0200)
test/Twig/Tests/integrationTest.php

index 1932c5d..c193575 100644 (file)
@@ -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:';