1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 19:24:01 +02:00

[ticket/15392] Changed dirname(__FILE__) to __DIR__

Changed dirname(__FILE__) to __DIR__ everywhere

PHPBB3-15392
This commit is contained in:
DinHere
2017-12-03 17:19:59 +02:00
committed by Marc Alexander
parent 66cbf2607b
commit 8c9d26db1f
198 changed files with 373 additions and 373 deletions

View File

@@ -13,7 +13,7 @@
namespace
{
require_once dirname(__FILE__) . '/fixtures/ext/vendor/enabled_4/di/extension.php';
require_once __DIR__ . '/fixtures/ext/vendor/enabled_4/di/extension.php';
class phpbb_di_container_test extends \phpbb_test_case
{
@@ -28,7 +28,7 @@ namespace
protected function setUp(): void
{
$this->phpbb_root_path = dirname(__FILE__) . '/';
$this->phpbb_root_path = __DIR__ . '/';
$this->config_php = new \phpbb\config_php_file($this->phpbb_root_path . 'fixtures/', 'php');
$this->builder = new phpbb_mock_phpbb_di_container_builder($this->phpbb_root_path . 'fixtures/', 'php');
$this->builder->with_config($this->config_php);
@@ -162,10 +162,10 @@ namespace phpbb\extension
public function all_enabled($phpbb_relative = true)
{
return array(
'vendor/enabled' => dirname(__FILE__) . '/fixtures/ext/vendor/enabled/',
'vendor/enabled-2' => dirname(__FILE__) . '/fixtures/ext/vendor/enabled-2/',
'vendor/enabled-3' => dirname(__FILE__) . '/fixtures/ext/vendor/enabled-3/',
'vendor/enabled_4' => dirname(__FILE__) . '/fixtures/ext/vendor/enabled_4/',
'vendor/enabled' => __DIR__ . '/fixtures/ext/vendor/enabled/',
'vendor/enabled-2' => __DIR__ . '/fixtures/ext/vendor/enabled-2/',
'vendor/enabled-3' => __DIR__ . '/fixtures/ext/vendor/enabled-3/',
'vendor/enabled_4' => __DIR__ . '/fixtures/ext/vendor/enabled_4/',
);
}
}