1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-12 03:34:04 +02:00

[ticket/17176] Fix some PHP 8.x deprecations and clean up test code

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-09-09 19:47:45 +02:00
parent 20a2ee2682
commit 9fbe00dd45
12 changed files with 67 additions and 5 deletions

View File

@@ -13,6 +13,9 @@
class phpbb_passwords_helper_test extends \phpbb_test_case
{
/** @var array */
protected $passwords_drivers = [];
protected function setUp(): void
{
// Prepare dependencies for drivers
@@ -21,7 +24,7 @@ class phpbb_passwords_helper_test extends \phpbb_test_case
$this->driver_helper = new \phpbb\passwords\driver\helper($config);
$phpbb_root_path = __DIR__ . '/../../phpBB/';
$php_ext = 'php';
// Initialize argon2 default options
$this->argon2_default_cost_options = [
'memory_cost' => 65536,

View File

@@ -13,6 +13,15 @@
class phpbb_passwords_manager_test extends \phpbb_test_case
{
/** @var \phpbb\passwords\driver\helper */
protected $driver_helper;
/** @var \phpbb\passwords\helper */
protected $helper;
/** @var \phpbb\passwords\manager */
protected $manager;
protected $passwords_drivers;
protected $pw_characters = '0123456789abcdefghijklmnopqrstuvwyzABCDEFGHIJKLMNOPQRSTUVXYZ.,_!?/\\';