mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/16549] Rewrite at() calls
See https://github.com/sebastianbergmann/phpunit/issues/4297 PHPBB3-16549
This commit is contained in:
@@ -67,14 +67,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||
->with('PHP_AUTH_USER',
|
||||
\phpbb\request\request_interface::SERVER)
|
||||
->will($this->returnValue(true));
|
||||
$this->request->expects($this->at(1))
|
||||
$this->request->expects($this->exactly(2))
|
||||
->method('server')
|
||||
->with('PHP_AUTH_USER')
|
||||
->will($this->returnValue('foobar'));
|
||||
$this->request->expects($this->at(2))
|
||||
->method('server')
|
||||
->with('PHP_AUTH_PW')
|
||||
->will($this->returnValue('example'));
|
||||
->withConsecutive(['PHP_AUTH_USER'], ['PHP_AUTH_PW'])
|
||||
->will($this->onConsecutiveCalls($this->returnValue('foobar'), $this->returnValue('example')));
|
||||
|
||||
$expected = array(
|
||||
'status' => LOGIN_SUCCESS,
|
||||
@@ -99,14 +95,10 @@ class phpbb_auth_provider_apache_test extends phpbb_database_test_case
|
||||
->with('PHP_AUTH_USER',
|
||||
\phpbb\request\request_interface::SERVER)
|
||||
->will($this->returnValue(true));
|
||||
$this->request->expects($this->at(1))
|
||||
$this->request->expects($this->exactly(2))
|
||||
->method('server')
|
||||
->with('PHP_AUTH_USER')
|
||||
->will($this->returnValue('foobar'));
|
||||
$this->request->expects($this->at(2))
|
||||
->method('server')
|
||||
->with('PHP_AUTH_PW')
|
||||
->will($this->returnValue('example'));
|
||||
->withConsecutive(['PHP_AUTH_USER'], ['PHP_AUTH_PW'])
|
||||
->will($this->onConsecutiveCalls($this->returnValue('foobar'), $this->returnValue('example')));
|
||||
|
||||
$expected = array(
|
||||
'user_id' => 1,
|
||||
|
Reference in New Issue
Block a user