fixed PHP 5.2 issue in unit tests
authorFabien Potencier <fabien.potencier@gmail.com>
Tue, 10 Jul 2012 12:56:21 +0000 (14:56 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Tue, 10 Jul 2012 12:56:21 +0000 (14:56 +0200)
test/Twig/Tests/ErrorTest.php

index 33ca43d..9d20c4d 100644 (file)
@@ -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');