1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-09 02:06:32 +02:00

[ticket/15392] Replace remaining dirname(__FILE__) with __DIR__

PHPBB3-15392
This commit is contained in:
Marc Alexander
2021-03-04 16:34:52 +01:00
parent 20d4a86016
commit 7a310cc7d9
18 changed files with 25 additions and 25 deletions

View File

@@ -15,7 +15,7 @@ use Symfony\Component\Config\FileLocator;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
require_once dirname(__FILE__) . '/base.php';
require_once __DIR__ . '/base.php';
class notification_method_email_test extends phpbb_tests_notification_base
{
@@ -24,7 +24,7 @@ class notification_method_email_test extends phpbb_tests_notification_base
public function getDataSet()
{
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/email_notification.type.post.xml');
return $this->createXMLDataSet(__DIR__ . '/fixtures/email_notification.type.post.xml');
}
protected function get_notification_methods()
@@ -257,7 +257,7 @@ class notification_method_email_test extends phpbb_tests_notification_base
'post_username' => '',
'forum_name' => '',
],
$post_data);
$notification_options = [
'item_id' => $post_data['post_id'],