mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
[ticket/15392] Replace remaining dirname(__FILE__) with __DIR__
PHPBB3-15392
This commit is contained in:
2
tests/cache/file_driver_test.php
vendored
2
tests/cache/file_driver_test.php
vendored
@@ -26,7 +26,7 @@ class phpbb_cache_file_driver_test extends phpbb_cache_common_test_case
|
||||
{
|
||||
parent::setUp();
|
||||
|
||||
$this->cache_dir = dirname(__FILE__) . '/../tmp/cache/';
|
||||
$this->cache_dir = __DIR__ . '/../tmp/cache/';
|
||||
|
||||
if (file_exists($this->cache_dir))
|
||||
{
|
||||
|
4
tests/cache/memcached_test.php
vendored
4
tests/cache/memcached_test.php
vendored
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/common_test_case.php';
|
||||
require_once __DIR__ . '/common_test_case.php';
|
||||
|
||||
class phpbb_cache_memcached_driver_test extends \phpbb_cache_common_test_case
|
||||
{
|
||||
@@ -19,7 +19,7 @@ class phpbb_cache_memcached_driver_test extends \phpbb_cache_common_test_case
|
||||
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/config.xml');
|
||||
}
|
||||
|
||||
static public function setUpBeforeClass(): void
|
||||
|
Reference in New Issue
Block a user