mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11620] Changes for code guidelines consistency
PHPBB3-11620
This commit is contained in:
parent
de2cb59533
commit
cc1aef47fb
3 changed files with 15 additions and 13 deletions
|
@ -32,7 +32,7 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
|||
'root_script_path' => '/phpBB/',
|
||||
'page' => 'index.php',
|
||||
'forum' => 0,
|
||||
)
|
||||
),
|
||||
),
|
||||
array(
|
||||
'./',
|
||||
|
@ -47,7 +47,7 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
|||
'root_script_path' => '/phpBB/',
|
||||
'page' => 'ucp.php?mode=login',
|
||||
'forum' => 0,
|
||||
)
|
||||
),
|
||||
),
|
||||
array(
|
||||
'./',
|
||||
|
@ -62,7 +62,7 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
|||
'root_script_path' => '/phpBB/',
|
||||
'page' => 'ucp.php?mode=register',
|
||||
'forum' => 0,
|
||||
)
|
||||
),
|
||||
),
|
||||
array(
|
||||
'./',
|
||||
|
@ -77,7 +77,7 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
|||
'root_script_path' => '/phpBB/',
|
||||
'page' => 'ucp.php?mode=register',
|
||||
'forum' => 0,
|
||||
)
|
||||
),
|
||||
),
|
||||
array(
|
||||
'./../',
|
||||
|
@ -93,8 +93,8 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
|
|||
'root_script_path' => '/phpBB/',
|
||||
//'page' => 'adm/index.php',
|
||||
'forum' => 0,
|
||||
)
|
||||
)
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,8 @@ class phpbb_session_testable_facade
|
|||
protected $db;
|
||||
protected $session_factory;
|
||||
|
||||
function __construct($db, $session_factory) {
|
||||
function __construct($db, $session_factory)
|
||||
{
|
||||
$this->db = $db;
|
||||
$this->session_factory = $session_factory;
|
||||
}
|
||||
|
|
|
@ -63,6 +63,7 @@ class phpbb_session_validate_referrer_test extends phpbb_session_test_case
|
|||
$server_port,
|
||||
$server_name,
|
||||
$root_script_path
|
||||
), "referrer should" . ($pass_or_fail? '' : "n't") . " be validated");
|
||||
),
|
||||
"referrer should" . ($pass_or_fail ? '' : "n't") . " be validated");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue