removed usage of PHP 5.3 __DIR__
authorFabien Potencier <fabien.potencier@gmail.com>
Thu, 29 Sep 2011 15:16:55 +0000 (17:16 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Thu, 29 Sep 2011 15:16:55 +0000 (17:16 +0200)
test/Twig/Tests/Loader/FilesystemTest.php

index c0437e8..22ae5aa 100644 (file)
@@ -16,7 +16,7 @@ class Twig_Tests_Loader_FilesystemTest extends PHPUnit_Framework_TestCase
      */
     public function testSecurity($template)
     {
-        $loader = new Twig_Loader_Filesystem(array(__DIR__.'/../Fixtures'));
+        $loader = new Twig_Loader_Filesystem(array(dirname(__FILE__).'/../Fixtures'));
 
         try {
             $loader->getCacheKey($template);