mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/15392] Changed dirname(__FILE__) to __DIR__
Changed dirname(__FILE__) to __DIR__ everywhere PHPBB3-15392
This commit is contained in:
@@ -15,7 +15,7 @@ use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
|
||||
require_once dirname(__FILE__) . '/manager_helper.php';
|
||||
require_once __DIR__ . '/manager_helper.php';
|
||||
|
||||
abstract class phpbb_tests_notification_base extends phpbb_database_test_case
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@
|
||||
* the docs/CREDITS.txt file.
|
||||
*
|
||||
*/
|
||||
require_once dirname(__FILE__) . '/../mock/sql_insert_buffer.php';
|
||||
require_once __DIR__ . '/../mock/sql_insert_buffer.php';
|
||||
|
||||
class phpbb_notification_convert_test extends phpbb_database_test_case
|
||||
{
|
||||
@@ -18,7 +18,7 @@ class phpbb_notification_convert_test extends phpbb_database_test_case
|
||||
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/convert.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/convert.xml');
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
|
@@ -11,13 +11,13 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/base.php';
|
||||
require_once __DIR__ . '/base.php';
|
||||
|
||||
class phpbb_notification_group_request_test extends phpbb_tests_notification_base
|
||||
{
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/group_request.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/group_request.xml');
|
||||
}
|
||||
|
||||
protected function get_notification_types()
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/base.php';
|
||||
require_once __DIR__ . '/base.php';
|
||||
|
||||
class phpbb_notification_test extends phpbb_tests_notification_base
|
||||
{
|
||||
@@ -19,7 +19,7 @@ class phpbb_notification_test extends phpbb_tests_notification_base
|
||||
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/notification.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/notification.xml');
|
||||
}
|
||||
|
||||
public function test_get_notification_type_id()
|
||||
|
@@ -15,7 +15,7 @@ use Symfony\Component\Config\FileLocator;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||
|
||||
require_once dirname(__FILE__) . '/../../phpBB/includes/functions_posting.php';
|
||||
require_once __DIR__ . '/../../phpBB/includes/functions_posting.php';
|
||||
|
||||
abstract class phpbb_notification_submit_post_base extends phpbb_database_test_case
|
||||
{
|
||||
@@ -47,7 +47,7 @@ abstract class phpbb_notification_submit_post_base extends phpbb_database_test_c
|
||||
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/submit_post_' . $this->item_type . '.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/submit_post_' . $this->item_type . '.xml');
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/submit_post_base.php';
|
||||
require_once __DIR__ . '/submit_post_base.php';
|
||||
|
||||
class phpbb_notification_submit_post_type_bookmark_test extends phpbb_notification_submit_post_base
|
||||
{
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/submit_post_base.php';
|
||||
require_once __DIR__ . '/submit_post_base.php';
|
||||
|
||||
class phpbb_notification_submit_post_type_post_in_queue_test extends phpbb_notification_submit_post_base
|
||||
{
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/submit_post_base.php';
|
||||
require_once __DIR__ . '/submit_post_base.php';
|
||||
|
||||
class phpbb_notification_submit_post_type_post_test extends phpbb_notification_submit_post_base
|
||||
{
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/submit_post_base.php';
|
||||
require_once __DIR__ . '/submit_post_base.php';
|
||||
|
||||
class phpbb_notification_submit_post_type_quote_test extends phpbb_notification_submit_post_base
|
||||
{
|
||||
|
@@ -11,7 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
require_once dirname(__FILE__) . '/submit_post_base.php';
|
||||
require_once __DIR__ . '/submit_post_base.php';
|
||||
|
||||
class phpbb_notification_submit_post_type_topic_test extends phpbb_notification_submit_post_base
|
||||
{
|
||||
|
@@ -17,7 +17,7 @@ class phpbb_notification_user_list_trim_test extends phpbb_database_test_case
|
||||
|
||||
public function getDataSet()
|
||||
{
|
||||
return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/user_list_trim.xml');
|
||||
return $this->createXMLDataSet(__DIR__ . '/fixtures/user_list_trim.xml');
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
|
Reference in New Issue
Block a user