Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'test/classes/Plugins/Auth/AuthenticationHttpTest.php')
-rw-r--r--test/classes/Plugins/Auth/AuthenticationHttpTest.php27
1 files changed, 21 insertions, 6 deletions
diff --git a/test/classes/Plugins/Auth/AuthenticationHttpTest.php b/test/classes/Plugins/Auth/AuthenticationHttpTest.php
index 5f1da34acf..1cc60ad1c7 100644
--- a/test/classes/Plugins/Auth/AuthenticationHttpTest.php
+++ b/test/classes/Plugins/Auth/AuthenticationHttpTest.php
@@ -136,7 +136,9 @@ class AuthenticationHttpTest extends PmaTestCase
$GLOBALS['cfg']['Server']['LogoutURL'] = 'https://example.com/logout';
$this->doMockResponse(
- 0, 0, 0,
+ 0,
+ 0,
+ 0,
['Location: https://example.com/logout']
);
}
@@ -150,7 +152,9 @@ class AuthenticationHttpTest extends PmaTestCase
$GLOBALS['cfg']['Server']['verbose'] = 'verboseMessagê';
$this->doMockResponse(
- 1, 1, 1,
+ 1,
+ 1,
+ 1,
['WWW-Authenticate: Basic realm="phpMyAdmin verboseMessag"'],
['status: 401 Unauthorized'],
401
@@ -166,7 +170,9 @@ class AuthenticationHttpTest extends PmaTestCase
$GLOBALS['cfg']['Server']['host'] = 'hòst';
$this->doMockResponse(
- 1, 1, 1,
+ 1,
+ 1,
+ 1,
['WWW-Authenticate: Basic realm="phpMyAdmin hst"'],
['status: 401 Unauthorized'],
401
@@ -182,7 +188,9 @@ class AuthenticationHttpTest extends PmaTestCase
$GLOBALS['cfg']['Server']['auth_http_realm'] = 'rêäealmmessage';
$this->doMockResponse(
- 1, 1, 1,
+ 1,
+ 1,
+ 1,
['WWW-Authenticate: Basic realm="realmmessage"'],
['status: 401 Unauthorized'],
401
@@ -204,8 +212,15 @@ class AuthenticationHttpTest extends PmaTestCase
* @return void
* @dataProvider readCredentialsProvider
*/
- public function testAuthCheck($user, $pass, $userIndex, $passIndex,
- $expectedReturn, $expectedUser, $expectedPass, $old_usr = ''
+ public function testAuthCheck(
+ $user,
+ $pass,
+ $userIndex,
+ $passIndex,
+ $expectedReturn,
+ $expectedUser,
+ $expectedPass,
+ $old_usr = ''
) {
$_SERVER[$userIndex] = $user;
$_SERVER[$passIndex] = $pass;