mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-11 18:15:20 +02:00
Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
30 lines
440 B
PHP
30 lines
440 B
PHP
<?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;
|
|
}
|
|
}
|