2012-06-20 22:15:59 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2014-05-27 20:18:06 +02:00
|
|
|
*
|
|
|
|
* This file is part of the phpBB Forum Software package.
|
|
|
|
*
|
|
|
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
|
|
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
|
|
|
*
|
|
|
|
* For full copyright and license information, please see
|
|
|
|
* the docs/CREDITS.txt file.
|
|
|
|
*
|
|
|
|
*/
|
2012-06-20 22:15:59 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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 = '';
|
2015-07-16 16:30:59 +02:00
|
|
|
public $valid_dimensions = true;
|
2012-06-20 22:15:59 +01:00
|
|
|
|
2020-01-01 16:38:34 +07:00
|
|
|
public $min_width = 0;
|
|
|
|
public $min_height = 0;
|
|
|
|
public $max_width = 0;
|
|
|
|
public $max_height = 0;
|
|
|
|
|
2012-06-20 22:15:59 +01:00
|
|
|
public function valid_dimensions($filespec)
|
|
|
|
{
|
2015-07-16 16:30:59 +02:00
|
|
|
return $this->valid_dimensions;
|
2012-06-20 22:15:59 +01:00
|
|
|
}
|
|
|
|
}
|