1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 22:41:28 +02:00

[ticket/17535] Update PHPUnit to v.10

PHPBB-17535
This commit is contained in:
rxu
2025-07-14 17:02:21 +07:00
parent 30ee379576
commit d7db296eab
56 changed files with 529 additions and 574 deletions

View File

@@ -57,7 +57,7 @@ class phpbb_installer_database_helper_test extends phpbb_test_case
public function test_validate_table_prefix($expected, $test_string)
{
$db_helper_mock = $this->getMockBuilder('\phpbb\install\helper\database')
->setMethods(array('get_available_dbms'))
->onlyMethods(array('get_available_dbms'))
->disableOriginalConstructor()
->getMock();

View File

@@ -25,9 +25,9 @@ class phpbb_installer_config_test extends phpbb_test_case
$phpbb_root_path = __DIR__ . './../../phpBB/';
$filesystem = $this->createMock('\phpbb\filesystem\filesystem');
$php_ini = $this->getMockBuilder('\bantu\IniGetWrapper\IniGetWrapper')
->setMethods(array('getInt', 'getBytes'))
->onlyMethods(array('getNumeric', 'getBytes'))
->getMock();
$php_ini->method('getInt')
$php_ini->method('getNumeric')
->willReturn(-1);
$php_ini->method('getBytes')
->willReturn(-1);