PHP 5.2 compatibility

This commit is contained in:
uwetews
2017-05-21 19:14:39 +02:00
parent ae311ee2e8
commit 52f84dc39d
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ class FilterTest extends PHPUnit_Smarty
public function setUp() public function setUp()
{ {
$this->setUpSmarty(__DIR__); $this->setUpSmarty(dirname(__FILE__));
} }
public function testInit() public function testInit()

View File

@@ -6,7 +6,7 @@
* @author Uwe Tews * @author Uwe Tews
*/ */
include_once __DIR__ . '/../_shared/CacheResourceTestCommon.php'; include_once dirname(__FILE__) . '/../_shared/CacheResourceTestCommon.php';
/** /**
* class for cache resource memcache tests * class for cache resource memcache tests
@@ -31,7 +31,7 @@ class CacheResourceCustomMemcacheTest extends CacheResourceTestCommon
$this->markTestSkipped('Memcache not available'); $this->markTestSkipped('Memcache not available');
} }
} }
$this->setUpSmarty(__DIR__); $this->setUpSmarty(dirname(__FILE__));
parent::setUp(); parent::setUp();
$this->smarty->setCachingType('memcachetest'); $this->smarty->setCachingType('memcachetest');
} }