aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mock')
-rw-r--r--tests/mock/fileupload.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/mock/fileupload.php b/tests/mock/fileupload.php
index 817b090346..409036ba63 100644
--- a/tests/mock/fileupload.php
+++ b/tests/mock/fileupload.php
@@ -21,6 +21,13 @@ class phpbb_mock_fileupload
return true;
}
+ /**
+ * Copied verbatim from phpBB/includes/functions_upload.php's fileupload
+ * class to ensure the correct behaviour of filespec::move_file.
+ *
+ * Maps file extensions to the constant in second index of the array
+ * returned by getimagesize()
+ */
public function image_types()
{
return array(