Visitar URL original
Merge pull request #7108 from marc1706/ticket/17740 · phpbb/phpbb@a4cea64 · GitHub
Skip to content

Commit a4cea64

Browse files
authored
Merge pull request #7108 from marc1706/ticket/17740
[ticket/17740] Use onlyMethods in obtain_server_data_test
2 parents 205d37c + e4f998d commit a4cea64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/installer/obtain_server_data_test.php‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ protected function setUp(): void
4343
$phpbb_root_path = __DIR__ . './../../phpBB/';
4444
$filesystem = $this->createMock('\phpbb\filesystem\filesystem');
4545
$php_ini = $this->getMockBuilder('\bantu\IniGetWrapper\IniGetWrapper')
46-
->setMethods(array('getInt', 'getBytes'))
46+
->onlyMethods(['getNumeric', 'getBytes'])
4747
->getMock();
48-
$php_ini->method('getInt')
48+
$php_ini->method('getNumeric')
4949
->willReturn(-1);
5050
$php_ini->method('getBytes')
5151
->willReturn(-1);
5252

5353
$this->config = new config($filesystem, $php_ini, $phpbb_root_path);
5454

55-
$this->input = array();
56-
$this->errors = array();
55+
$this->input = [];
56+
$this->errors = [];
5757

5858
$this->io_handler = $this->createMock(iohandler_interface::class);
5959
$this->io_handler->method('is_secure')

0 commit comments

Comments
 (0)