aboutsummaryrefslogtreecommitdiffstats
path: root/tests/request
diff options
context:
space:
mode:
Diffstat (limited to 'tests/request')
-rw-r--r--tests/request/type_cast_helper_test.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/request/type_cast_helper_test.php b/tests/request/type_cast_helper_test.php
index d553d5b8cd..f7e5cd873e 100644
--- a/tests/request/type_cast_helper_test.php
+++ b/tests/request/type_cast_helper_test.php
@@ -48,4 +48,14 @@ class phpbb_type_cast_helper_test extends phpbb_test_case
$this->assertEquals($expected, $data);
}
+
+ public function test_untrimmed_strings()
+ {
+ $data = array(' eviL<3 ');
+ $expected = array(' eviL&lt;3 ');
+
+ $this->type_cast_helper->recursive_set_var($data, '', true, false);
+
+ $this->assertEquals($expected, $data);
+ }
}