diff options
author | Fyorl <gaelreth@gmail.com> | 2012-06-21 16:42:09 +0100 |
---|---|---|
committer | Fyorl <gaelreth@gmail.com> | 2012-07-08 23:59:11 +0100 |
commit | dfef80f267f19b21dbf5b94ac43ecc856da65aef (patch) | |
tree | 96c440fbe36de1489ff234d65e69e08e2de4af39 /tests/mock/filespec.php | |
parent | fe4056c599f1e90789997bd8af391aa024c05075 (diff) | |
download | forums-dfef80f267f19b21dbf5b94ac43ecc856da65aef.tar forums-dfef80f267f19b21dbf5b94ac43ecc856da65aef.tar.gz forums-dfef80f267f19b21dbf5b94ac43ecc856da65aef.tar.bz2 forums-dfef80f267f19b21dbf5b94ac43ecc856da65aef.tar.xz forums-dfef80f267f19b21dbf5b94ac43ecc856da65aef.zip |
[ticket/10941] Unit tests for fileupload class added
PHPBB3-10941
Diffstat (limited to 'tests/mock/filespec.php')
-rw-r--r-- | tests/mock/filespec.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/mock/filespec.php b/tests/mock/filespec.php new file mode 100644 index 0000000000..9d2a5c84de --- /dev/null +++ b/tests/mock/filespec.php @@ -0,0 +1,32 @@ +<?php +/** + * + * @package testing + * @copyright (c) 2012 phpBB Group + * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 + * + */ + +/** + * Mock filespec class with some basic values to help with testing the + * fileupload class + */ +class phpbb_mock_filespec +{ + public $filesize; + public $realname; + public $extension; + public $width; + public $height; + public $error = array(); + + public function check_content($disallowed_content) + { + return true; + } + + public function get($property) + { + return $this->$property; + } +} |