mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-16 04:16:28 +00:00
replaced dirname(__FILE__) with __DIR__
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user