aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock/fileupload.php
diff options
context:
space:
mode:
authorFyorl <gaelreth@gmail.com>2012-06-20 22:15:59 +0100
committerFyorl <gaelreth@gmail.com>2012-07-08 23:59:11 +0100
commit33a13002af3a0a7c6c890393a40b03e92707d934 (patch)
treecd16b8f33adfc505d62e7b838e5ef2b71afdbc11 /tests/mock/fileupload.php
parent9f0259c473f2108464b63aab62298e5052c0a8a7 (diff)
downloadforums-33a13002af3a0a7c6c890393a40b03e92707d934.tar
forums-33a13002af3a0a7c6c890393a40b03e92707d934.tar.gz
forums-33a13002af3a0a7c6c890393a40b03e92707d934.tar.bz2
forums-33a13002af3a0a7c6c890393a40b03e92707d934.tar.xz
forums-33a13002af3a0a7c6c890393a40b03e92707d934.zip
[ticket/10941] Unit tests for filespec class
PHPBB3-10941
Diffstat (limited to 'tests/mock/fileupload.php')
-rw-r--r--tests/mock/fileupload.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/mock/fileupload.php b/tests/mock/fileupload.php
new file mode 100644
index 0000000000..cbcbf4a6ab
--- /dev/null
+++ b/tests/mock/fileupload.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ *
+ * @package testing
+ * @copyright (c) 2012 phpBB Group
+ * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+ *
+ */
+
+/**
+ * Mock fileupload class with some basic values to help with testing the
+ * filespec class
+ */
+class phpbb_mock_fileupload
+{
+ public $max_filesize = 100;
+ public $error_prefix = '';
+
+ public function valid_dimensions($filespec)
+ {
+ return true;
+ }
+}