aboutsummaryrefslogtreecommitdiffstats
path: root/tests/request/request_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/request/request_test.php')
-rw-r--r--tests/request/request_test.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/request/request_test.php b/tests/request/request_test.php
index 24c9ae5112..2e56841601 100644
--- a/tests/request/request_test.php
+++ b/tests/request/request_test.php
@@ -117,6 +117,17 @@ class phpbb_request_test extends phpbb_test_case
$this->assertTrue($this->request->is_ajax());
}
+ public function test_is_secure()
+ {
+ $this->assertFalse($this->request->is_secure());
+
+ $this->request->enable_super_globals();
+ $_SERVER['HTTPS'] = 'on';
+ $this->request = new phpbb_request($this->type_cast_helper);
+
+ $this->assertTrue($this->request->is_secure());
+ }
+
public function test_variable_names()
{
$expected = array('test', 'unset');