diff --git a/tests/cache/apcu_driver_test.php b/tests/cache/apcu_driver_test.php index 34bcf8f844..86ae880dab 100644 --- a/tests/cache/apcu_driver_test.php +++ b/tests/cache/apcu_driver_test.php @@ -26,7 +26,7 @@ class phpbb_cache_apcu_driver_test extends phpbb_cache_common_test_case return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml'); } - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { if (!extension_loaded('apcu')) { diff --git a/tests/cache/memcached_test.php b/tests/cache/memcached_test.php index 650b72ea18..14499e7423 100644 --- a/tests/cache/memcached_test.php +++ b/tests/cache/memcached_test.php @@ -22,7 +22,7 @@ class phpbb_cache_memcached_driver_test extends \phpbb_cache_common_test_case return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml'); } - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { if (!extension_loaded('memcached')) { diff --git a/tests/cache/redis_driver_test.php b/tests/cache/redis_driver_test.php index a2288cf9a8..c5ec7880fd 100644 --- a/tests/cache/redis_driver_test.php +++ b/tests/cache/redis_driver_test.php @@ -22,7 +22,7 @@ class phpbb_cache_redis_driver_test extends \phpbb_cache_common_test_case return $this->createXMLDataSet(dirname(__FILE__) . '/fixtures/config.xml'); } - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { if (!extension_loaded('redis')) { diff --git a/tests/extension/extension_base_test.php b/tests/extension/extension_base_test.php index 1f44fdb234..1181498004 100644 --- a/tests/extension/extension_base_test.php +++ b/tests/extension/extension_base_test.php @@ -21,7 +21,7 @@ class phpbb_extension_extension_base_test extends phpbb_test_case /** @var phpbb_mock_extension_manager */ protected $extension_manager; - public static function setUpBeforeClass() + public static function setUpBeforeClass(): void { parent::setUpBeforeClass(); diff --git a/tests/filesystem/realpath_test.php b/tests/filesystem/realpath_test.php index 3d05cd7ff2..c4d1ac9472 100644 --- a/tests/filesystem/realpath_test.php +++ b/tests/filesystem/realpath_test.php @@ -18,7 +18,7 @@ class phpbb_filesystem_realpath_test extends phpbb_test_case /** @var \phpbb\filesystem\filesystem_interface */ protected $filesystem; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index c0ae37ad9a..af06168466 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -22,7 +22,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case './', ); - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -30,7 +30,7 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/../extension/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functional/extension_controller_test.php b/tests/functional/extension_controller_test.php index d77d7df4f4..575af62c29 100644 --- a/tests/functional/extension_controller_test.php +++ b/tests/functional/extension_controller_test.php @@ -30,7 +30,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c 'foo/foo/controller/', ); - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -38,7 +38,7 @@ class phpbb_functional_extension_controller_test extends phpbb_functional_test_c self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functional/extension_global_lang_test.php b/tests/functional/extension_global_lang_test.php index d462d6eb5d..7c30a5fc22 100644 --- a/tests/functional/extension_global_lang_test.php +++ b/tests/functional/extension_global_lang_test.php @@ -26,7 +26,7 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_ 'foo/bar/language/en/', ); - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -34,7 +34,7 @@ class phpbb_functional_extension_global_lang_test extends phpbb_functional_test_ self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functional/extension_module_test.php b/tests/functional/extension_module_test.php index bda18380a1..d94f9e0173 100644 --- a/tests/functional/extension_module_test.php +++ b/tests/functional/extension_module_test.php @@ -25,7 +25,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case './', ); - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -33,7 +33,7 @@ class phpbb_functional_extension_module_test extends phpbb_functional_test_case self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functional/extension_permission_lang_test.php b/tests/functional/extension_permission_lang_test.php index c9f5ff2367..a8caee0eeb 100644 --- a/tests/functional/extension_permission_lang_test.php +++ b/tests/functional/extension_permission_lang_test.php @@ -26,7 +26,7 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t 'foo/bar/language/en/', ); - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -34,7 +34,7 @@ class phpbb_functional_extension_permission_lang_test extends phpbb_functional_t self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functional/metadata_manager_test.php b/tests/functional/metadata_manager_test.php index ca52e73ed0..3072351c25 100644 --- a/tests/functional/metadata_manager_test.php +++ b/tests/functional/metadata_manager_test.php @@ -31,7 +31,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case parent::tearDown(); } - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); @@ -39,7 +39,7 @@ class phpbb_functional_metadata_manager_test extends phpbb_functional_test_case self::$helper->copy_ext_fixtures(dirname(__FILE__) . '/fixtures/ext/', self::$fixtures); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { parent::tearDownAfterClass(); diff --git a/tests/functions_content/get_username_string_test.php b/tests/functions_content/get_username_string_test.php index ac36e37e93..17c8a2f2e1 100644 --- a/tests/functions_content/get_username_string_test.php +++ b/tests/functions_content/get_username_string_test.php @@ -13,7 +13,7 @@ class phpbb_functions_content_get_username_string_test extends phpbb_test_case { - public function setUp() + public function setUp(): void { parent::setUp(); diff --git a/tests/group/helper_test_case.php b/tests/group/helper_test_case.php index 099887bcb0..5a5956e0f1 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); } - public function setUp() + public function setUp(): void { $this->setup_engine(); } diff --git a/tests/lint_test.php b/tests/lint_test.php index 8356389acf..172a399c7e 100644 --- a/tests/lint_test.php +++ b/tests/lint_test.php @@ -16,7 +16,7 @@ class phpbb_lint_test extends phpbb_test_case static protected $php_binary; static protected $exclude; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { // Try to use PHP_BINARY constant if available so lint tests are run // using the same php binary as phpunit. If not available (pre PHP diff --git a/tests/network/ftp_fsock_pasv_epsv_test.php b/tests/network/ftp_fsock_pasv_epsv_test.php index 876df09d1b..f615888efe 100644 --- a/tests/network/ftp_fsock_pasv_epsv_test.php +++ b/tests/network/ftp_fsock_pasv_epsv_test.php @@ -20,7 +20,7 @@ class phpbb_network_ftp_fsock_pasv_epsv_test extends phpbb_test_case { static protected $ipv4; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { $hostname = 'ftp.debian.org.'; self::$ipv4 = gethostbyname($hostname); diff --git a/tests/template/template_test_case.php b/tests/template/template_test_case.php index 0389088ec8..1cb6cbe799 100644 --- a/tests/template/template_test_case.php +++ b/tests/template/template_test_case.php @@ -25,7 +25,7 @@ class phpbb_template_template_test_case extends phpbb_test_case static protected $language_reflection_lang; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); diff --git a/tests/test_framework/phpbb_database_test_case.php b/tests/test_framework/phpbb_database_test_case.php index 9b873fbf68..04324e0df1 100644 --- a/tests/test_framework/phpbb_database_test_case.php +++ b/tests/test_framework/phpbb_database_test_case.php @@ -54,7 +54,7 @@ abstract class phpbb_database_test_case extends TestCase return array(); } - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { global $phpbb_root_path, $phpEx; @@ -91,7 +91,7 @@ abstract class phpbb_database_test_case extends TestCase parent::setUpBeforeClass(); } - static public function tearDownAfterClass() + static public function tearDownAfterClass(): void { if (file_exists(self::$install_schema_file)) { diff --git a/tests/test_framework/phpbb_functional_test_case.php b/tests/test_framework/phpbb_functional_test_case.php index 4aabebebd2..10e444dee5 100644 --- a/tests/test_framework/phpbb_functional_test_case.php +++ b/tests/test_framework/phpbb_functional_test_case.php @@ -42,7 +42,7 @@ class phpbb_functional_test_case extends phpbb_test_case static protected $already_installed = false; static protected $last_post_timestamp = 0; - static public function setUpBeforeClass() + static public function setUpBeforeClass(): void { parent::setUpBeforeClass(); diff --git a/tests/text_processing/message_parser_test.php b/tests/text_processing/message_parser_test.php index d302ee9504..0090a6c41c 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() + public static 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() + public static function tearDownAfterClass(): void { parent::tearDownAfterClass(); stream_wrapper_restore('http');