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:
@@ -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();
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user