mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/17535] Update PHPUnit to v.10
PHPBB-17535
This commit is contained in:
@@ -74,8 +74,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||
->will($this->returnValue(true));
|
||||
$this->request->expects($this->exactly(2))
|
||||
->method('server')
|
||||
->withConsecutive(['PHP_AUTH_USER'], ['PHP_AUTH_PW'])
|
||||
->will($this->onConsecutiveCalls($this->returnValue('foobar'), $this->returnValue('example')));
|
||||
->willReturnCallback(fn(string $arg) => match(true) {
|
||||
$arg === 'PHP_AUTH_USER' => 'foobar',
|
||||
$arg === 'PHP_AUTH_PW' => 'example',
|
||||
});
|
||||
|
||||
$expected = array(
|
||||
'status' => LOGIN_SUCCESS,
|
||||
@@ -102,8 +104,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||
->will($this->returnValue(true));
|
||||
$this->request->expects($this->exactly(2))
|
||||
->method('server')
|
||||
->withConsecutive(['PHP_AUTH_USER'], ['PHP_AUTH_PW'])
|
||||
->will($this->onConsecutiveCalls($this->returnValue('foobar'), $this->returnValue('example')));
|
||||
->willReturnCallback(fn(string $arg) => match(true) {
|
||||
$arg === 'PHP_AUTH_USER' => 'foobar',
|
||||
$arg === 'PHP_AUTH_PW' => 'example',
|
||||
});
|
||||
|
||||
$expected = array(
|
||||
'user_id' => 1,
|
||||
|
Reference in New Issue
Block a user