1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00
php-phpbb/tests/mock/filespec.php
2012-07-08 23:59:11 +01:00

33 lines
547 B
PHP

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