From 032d898ddb1f60d63ce2497156b55d4c2916577f Mon Sep 17 00:00:00 2001 From: rxu Date: Wed, 15 Jul 2020 15:11:20 +0700 Subject: [PATCH] [ticket/16549] PHPUnit function declarations tiny cleanup PHPBB3-16549 --- tests/filesystem/helper_realpath_test.php | 2 +- tests/group/helper_test_case.php | 2 +- tests/migrations/migrations_check_config_added_test.php | 2 +- tests/notification/notification_method_email_test.php | 2 +- tests/text_processing/message_parser_test.php | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/filesystem/helper_realpath_test.php b/tests/filesystem/helper_realpath_test.php index f3c7742cd5..2f28909a82 100644 --- a/tests/filesystem/helper_realpath_test.php +++ b/tests/filesystem/helper_realpath_test.php @@ -17,7 +17,7 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case { protected static $filesystem_helper_phpbb_own_realpath; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); diff --git a/tests/group/helper_test_case.php b/tests/group/helper_test_case.php index 99d36197ac..c7abaea76e 100644 --- a/tests/group/helper_test_case.php +++ b/tests/group/helper_test_case.php @@ -116,7 +116,7 @@ class phpbb_group_helper_test_case extends phpbb_test_case $this->group_helper = new \phpbb\group\helper($auth, $cache_service, $config, $lang, $phpbb_dispatcher, $path_helper, $user); } - protected function setUp() + protected function setUp(): void { $this->setup_engine(); } diff --git a/tests/migrations/migrations_check_config_added_test.php b/tests/migrations/migrations_check_config_added_test.php index cf3f8e9ea0..e10cc5b771 100644 --- a/tests/migrations/migrations_check_config_added_test.php +++ b/tests/migrations/migrations_check_config_added_test.php @@ -13,7 +13,7 @@ class migrations_check_config_added_test extends phpbb_test_case { - public function setUp(): void + protected function setUp(): void { global $phpbb_root_path; diff --git a/tests/notification/notification_method_email_test.php b/tests/notification/notification_method_email_test.php index cf84ddc795..62f7385215 100644 --- a/tests/notification/notification_method_email_test.php +++ b/tests/notification/notification_method_email_test.php @@ -34,7 +34,7 @@ class notification_method_email_test extends phpbb_tests_notification_base ]; } - protected function setUp() : void + protected function setUp(): void { phpbb_database_test_case::setUp(); diff --git a/tests/text_processing/message_parser_test.php b/tests/text_processing/message_parser_test.php index 0090a6c41c..3b81ab9d9d 100644 --- a/tests/text_processing/message_parser_test.php +++ b/tests/text_processing/message_parser_test.php @@ -16,7 +16,7 @@ require_once __DIR__ . '/../../phpBB/includes/message_parser.php'; class phpbb_text_processing_message_parser_test extends phpbb_test_case { - public static function setUpBeforeClass(): void + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -25,7 +25,7 @@ class phpbb_text_processing_message_parser_test extends phpbb_test_case stream_wrapper_register('http', __CLASS__ . '_proxy'); } - public static function tearDownAfterClass(): void + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); stream_wrapper_restore('http');