From 584a1a30b9f8249e9b79e83f0dc551edd9ae4d05 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Tue, 10 Jul 2012 14:56:21 +0200 Subject: [PATCH] fixed PHP 5.2 issue in unit tests --- test/Twig/Tests/ErrorTest.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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'); -- 1.7.2.5