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:
23
tests/mock/fileupload.php
Normal file
23
tests/mock/fileupload.php
Normal 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user