[ticket/16549] PHPUnit function declarations tiny cleanup

PHPBB3-16549
This commit is contained in:
rxu 2020-07-15 15:11:20 +07:00
parent 2b6af5c334
commit 032d898ddb
No known key found for this signature in database
GPG key ID: 955F0567380E586A
5 changed files with 6 additions and 6 deletions

View file

@ -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();

View file

@ -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();
}

View file

@ -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;

View file

@ -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();

View file

@ -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');