From: Fabien Potencier Date: Tue, 10 Jul 2012 12:56:21 +0000 (+0200) Subject: fixed PHP 5.2 issue in unit tests X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=584a1a30b9f8249e9b79e83f0dc551edd9ae4d05;p=konrad%2Ftwig.git fixed PHP 5.2 issue in unit tests --- diff --git a/test/Twig/Tests/ErrorTest.php b/test/Twig/Tests/ErrorTest.php index 33ca43d..9d20c4d 100644 --- a/test/Twig/Tests/ErrorTest.php +++ b/test/Twig/Tests/ErrorTest.php @@ -101,7 +101,7 @@ class Twig_Tests_ErrorTest extends PHPUnit_Framework_TestCase public function testTwigExceptionAddsFileAndLineWhenMissingWithInheritanceOnDisk() { - $loader = new Twig_Loader_Filesystem(__DIR__.'/Fixtures/errors'); + $loader = new Twig_Loader_Filesystem(dirname(__FILE__).'/Fixtures/errors'); $twig = new Twig_Environment($loader, array('strict_variables' => true, 'debug' => true, 'cache' => false)); $template = $twig->loadTemplate('index.html');