aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndy Chase <asperous2@gmail.com>2013-07-22 11:13:31 -0700
committerAndy Chase <asperous2@gmail.com>2013-07-22 11:13:31 -0700
commitcc1aef47fb4f5d37415436c62067ad2dcde768bb (patch)
tree0a6f204563635f11581336404b4429db329c8c47 /tests
parentde2cb595336ee49aeb4bab4ee857fbe71e249599 (diff)
downloadforums-cc1aef47fb4f5d37415436c62067ad2dcde768bb.tar
forums-cc1aef47fb4f5d37415436c62067ad2dcde768bb.tar.gz
forums-cc1aef47fb4f5d37415436c62067ad2dcde768bb.tar.bz2
forums-cc1aef47fb4f5d37415436c62067ad2dcde768bb.tar.xz
forums-cc1aef47fb4f5d37415436c62067ad2dcde768bb.zip
[ticket/11620] Changes for code guidelines consistency
PHPBB3-11620
Diffstat (limited to 'tests')
-rw-r--r--tests/session/extract_page_test.php20
-rw-r--r--tests/session/testable_facade.php3
-rw-r--r--tests/session/validate_referrer_test.php5
3 files changed, 15 insertions, 13 deletions
diff --git a/tests/session/extract_page_test.php b/tests/session/extract_page_test.php
index 9346973bc4..4dbbbc9c59 100644
--- a/tests/session/extract_page_test.php
+++ b/tests/session/extract_page_test.php
@@ -32,8 +32,8 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
'root_script_path' => '/phpBB/',
'page' => 'index.php',
'forum' => 0,
- )
- ) ,
+ ),
+ ),
array(
'./',
'/phpBB/ucp.php',
@@ -47,8 +47,8 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
'root_script_path' => '/phpBB/',
'page' => 'ucp.php?mode=login',
'forum' => 0,
- )
- ) ,
+ ),
+ ),
array(
'./',
'/phpBB/ucp.php',
@@ -62,8 +62,8 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
'root_script_path' => '/phpBB/',
'page' => 'ucp.php?mode=register',
'forum' => 0,
- )
- ) ,
+ ),
+ ),
array(
'./',
'/phpBB/ucp.php',
@@ -77,8 +77,8 @@ class phpbb_session_extract_page_test extends phpbb_session_test_case
'root_script_path' => '/phpBB/',
'page' => 'ucp.php?mode=register',
'forum' => 0,
- )
- ) ,
+ ),
+ ),
array(
'./../',
'/phpBB/adm/index.php',
@@ -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,
- )
- )
+ ),
+ ),
);
}
diff --git a/tests/session/testable_facade.php b/tests/session/testable_facade.php
index 1cb1c94b52..1343b34a79 100644
--- a/tests/session/testable_facade.php
+++ b/tests/session/testable_facade.php
@@ -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;
}
diff --git a/tests/session/validate_referrer_test.php b/tests/session/validate_referrer_test.php
index f91ac5f1f9..b517b668ac 100644
--- a/tests/session/validate_referrer_test.php
+++ b/tests/session/validate_referrer_test.php
@@ -52,7 +52,7 @@ class phpbb_session_validate_referrer_test extends phpbb_session_test_case
)
{
// Referrer needs http:// because it's going to get stripped in function.
- $referrer = $referrer ? 'http://'.$referrer : '';
+ $referrer = $referrer ? 'http://' . $referrer : '';
$this->assertEquals(
$pass_or_fail,
$this->session_facade->validate_referer(
@@ -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");
}
}