diff options
author | Fyorl <gaelreth@gmail.com> | 2012-08-15 14:20:40 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-08-15 14:21:19 +0100 |
commit | 48a0810ea593fc3ed84762ccd9076ea756cda41c (patch) | |
tree | 95c79d64025291042372dab87deaa11307c66e36 | |
parent | 74423eaf126ea719df3ed102e459edad6be864da (diff) | |
download | forums-48a0810ea593fc3ed84762ccd9076ea756cda41c.tar forums-48a0810ea593fc3ed84762ccd9076ea756cda41c.tar.gz forums-48a0810ea593fc3ed84762ccd9076ea756cda41c.tar.bz2 forums-48a0810ea593fc3ed84762ccd9076ea756cda41c.tar.xz forums-48a0810ea593fc3ed84762ccd9076ea756cda41c.zip |
[ticket/10939] Modified request test slightly to include $_FILES
PHPBB3-10939
-rw-r--r-- | tests/request/request_test.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/request/request_test.php b/tests/request/request_test.php index bca5125b7a..c02fcf829f 100644 --- a/tests/request/request_test.php +++ b/tests/request/request_test.php @@ -21,6 +21,13 @@ class phpbb_request_test extends phpbb_test_case $_COOKIE['test'] = 3; $_REQUEST['test'] = 3; $_GET['unset'] = ''; + $_FILES['test'] = array( + 'name' => 'file', + 'tmp_name' => 'tmp', + 'size' => 256, + 'type' => 'application/octet-stream', + 'error' => UPLOAD_ERR_OK, + ); $_SERVER['HTTP_HOST'] = 'example.com'; $_SERVER['HTTP_ACCEPT'] = 'application/json'; @@ -42,6 +49,7 @@ class phpbb_request_test extends phpbb_test_case $this->assertEquals(2, $_GET['test'], 'Checking $_GET after enable_super_globals'); $this->assertEquals(3, $_COOKIE['test'], 'Checking $_COOKIE after enable_super_globals'); $this->assertEquals(3, $_REQUEST['test'], 'Checking $_REQUEST after enable_super_globals'); + $this->assertEquals(256, $_FILES['test']['size']); $_POST['x'] = 2; $this->assertEquals($_POST, $GLOBALS['_POST'], 'Checking whether $_POST can still be accessed via $GLOBALS[\'_POST\']'); |