diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-09-30 22:17:08 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2010-09-30 22:18:35 +0200 |
commit | 684914e6350fff9d3b89953b313b82db247cd1f8 (patch) | |
tree | 4eada354c7018d3bc4791e69dc64dbe69c74712c /tests/request | |
parent | 986935c4745195f45cbff74e541ffc98ecac714e (diff) | |
download | forums-684914e6350fff9d3b89953b313b82db247cd1f8.tar forums-684914e6350fff9d3b89953b313b82db247cd1f8.tar.gz forums-684914e6350fff9d3b89953b313b82db247cd1f8.tar.bz2 forums-684914e6350fff9d3b89953b313b82db247cd1f8.tar.xz forums-684914e6350fff9d3b89953b313b82db247cd1f8.zip |
[feature/request-class] Make additional request test cases run
PHPBB3-9716
Diffstat (limited to 'tests/request')
-rw-r--r-- | tests/request/request_var.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/request/request_var.php b/tests/request/request_var.php index 857dbe55a5..1c360d45d0 100644 --- a/tests/request/request_var.php +++ b/tests/request/request_var.php @@ -81,11 +81,14 @@ class phpbb_request_var_test extends phpbb_test_case /** * @dataProvider deep_access * Only possible with 3.1.x (later) + */ public function test_deep_multi_dim_array_access($path, $default, $expected) { $this->unset_variables('var'); - $_REQUEST['var'] = array( + // cannot set $_REQUEST directly because in phpbb_request implementation + // $_REQUEST = $_GET + $_POST + $_POST['var'] = array( 0 => array( 'b' => array( true => array( @@ -115,7 +118,6 @@ class phpbb_request_var_test extends phpbb_test_case array(array('var', 0, 'b', true), array(0 => ''), array(5 => 'c', 6 => 'd')), ); } -*/ public static function request_variables() { @@ -217,7 +219,6 @@ class phpbb_request_var_test extends phpbb_test_case 'abc' => array() ) ), - // 3-dimensional (not supported atm! array( // input: array( |