aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mock_user.php
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-07-08 22:35:50 +0200
committerAndreas Fischer <bantu@phpbb.com>2012-07-08 22:46:14 +0200
commitcde5411e8aad0436ca709a46e109cd38e4c21a9e (patch)
treeff1996f3d24aac69b20f6b2d12a3ba1bcf0695e2 /tests/mock_user.php
parent3ecc43d48cb0f58eb667da6ad2b4e0b56bbb336b (diff)
downloadforums-cde5411e8aad0436ca709a46e109cd38e4c21a9e.tar
forums-cde5411e8aad0436ca709a46e109cd38e4c21a9e.tar.gz
forums-cde5411e8aad0436ca709a46e109cd38e4c21a9e.tar.bz2
forums-cde5411e8aad0436ca709a46e109cd38e4c21a9e.tar.xz
forums-cde5411e8aad0436ca709a46e109cd38e4c21a9e.zip
[ticket/10974] Rename tests/mock_user.php -> tests/mock/user.php
PHPBB3-10974
Diffstat (limited to 'tests/mock_user.php')
-rw-r--r--tests/mock_user.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/mock_user.php b/tests/mock_user.php
deleted file mode 100644
index ec14ce430e..0000000000
--- a/tests/mock_user.php
+++ /dev/null
@@ -1,36 +0,0 @@
-<?php
-/**
-*
-* @package testing
-* @copyright (c) 2011 phpBB Group
-* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-*
-*/
-
-/**
-* Mock user class.
-* This class is used when tests invoke phpBB code expecting to have a global
-* user object, to avoid instantiating the actual user object.
-* It has a minimum amount of functionality, just to make tests work.
-*/
-class phpbb_mock_user
-{
- public $host = "testhost";
- public $page = array('root_script_path' => '/');
-
- private $options = array();
- public function optionget($item)
- {
- if (!isset($this->options[$item]))
- {
- throw new Exception(sprintf("You didn't set the option '%s' on the mock user using optionset.", $item));
- }
-
- return $this->options[$item];
- }
-
- public function optionset($item, $value)
- {
- $this->options[$item] = $value;
- }
-}