Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
phpbb_mock_fileupload
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 valid_dimensions
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2/**
3*
4* This file is part of the phpBB Forum Software package.
5*
6* @copyright (c) phpBB Limited <https://www.phpbb.com>
7* @license GNU General Public License, version 2 (GPL-2.0)
8*
9* For full copyright and license information, please see
10* the docs/CREDITS.txt file.
11*
12*/
13
14/**
15 * Mock fileupload class with some basic values to help with testing the
16 * filespec class
17 */
18class phpbb_mock_fileupload
19{
20    public $max_filesize = 100;
21    public $error_prefix = '';
22    public $valid_dimensions = true;
23
24    public $min_width = 0;
25    public $min_height = 0;
26    public $max_width = 0;
27    public $max_height = 0;
28
29    public function valid_dimensions($filespec)
30    {
31        return $this->valid_dimensions;
32    }
33}