1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/10941] Unit tests for filespec class

PHPBB3-10941
This commit is contained in:
Fyorl
2012-06-20 22:15:59 +01:00
parent 9f0259c473
commit 33a13002af
2 changed files with 238 additions and 0 deletions

23
tests/mock/fileupload.php Normal file
View File

@@ -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;
}
}