replaced dirname(__FILE__) with __DIR__

This commit is contained in:
Fabien Potencier
2016-01-11 14:05:04 +01:00
parent 37bde2e4bc
commit 8ea9d44921
3 changed files with 4 additions and 2 deletions
+2
View File
@@ -9,6 +9,8 @@
* file that was distributed with this source code.
*/
require_once dirname(__DIR__).'/FilesystemHelper.php';
class Twig_Tests_Cache_FilesystemTest extends PHPUnit_Framework_TestCase
{
private $classname;
+1 -1
View File
@@ -74,7 +74,7 @@ TRUE
{{ 5.5 in '125.5' ? 'TRUE' : 'FALSE' }}
{{ '5.5' in 125.5 ? 'TRUE' : 'FALSE' }}
--DATA--
return array('bar' => 'bar', 'foo' => array('bar' => 'bar'), 'dir_object' => new SplFileInfo(dirname(__FILE__)), 'object' => new stdClass(), 'resource' => opendir(dirname(__FILE__)))
return array('bar' => 'bar', 'foo' => array('bar' => 'bar'), 'dir_object' => new SplFileInfo(__DIR__), 'object' => new stdClass(), 'resource' => opendir(__DIR__))
--EXPECT--
TRUE
TRUE
+1 -1
View File
@@ -165,7 +165,7 @@ class Twig_Tests_Loader_FilesystemTest extends PHPUnit_Framework_TestCase
public function testArrayInheritance($templateName)
{
$loader = new Twig_Loader_Filesystem(array());
$loader->addPath(dirname(__FILE__).'/Fixtures/inheritance');
$loader->addPath(__DIR__.'/Fixtures/inheritance');
$twig = new Twig_Environment($loader);