aboutsummaryrefslogtreecommitdiffstats
path: root/tests/class_loader/cache_mock.php
blob: b254978fccf019289f344fba984a24a63c5cd36f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
*
* @package testing
* @version $Id$
* @copyright (c) 2008 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

class phpbb_cache_mock
{
	private $variables = array();

	function get($var_name)
	{
		if (isset($this->variables[$var_name]))
		{
			return $this->variables[$var_name];
		}

		return false;
	}

	function put($var_name, $value)
	{
		$this->variables[$var_name] = $value;
	}
}