diff options
Diffstat (limited to 'tests/mock/lang.php')
| -rw-r--r-- | tests/mock/lang.php | 42 | 
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/mock/lang.php b/tests/mock/lang.php new file mode 100644 index 0000000000..bebbe5a29b --- /dev/null +++ b/tests/mock/lang.php @@ -0,0 +1,42 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +/** +* phpbb_mock_lang +* mock a user with some language-keys specified +*/ +class phpbb_mock_lang implements ArrayAccess +{ +	public function offsetExists($offset) +	{ +		return true; +	} + +	public function offsetGet($offset) +	{ +		return $offset; +	} + +	public function offsetSet($offset, $value) +	{ +	} + +	public function offsetUnset($offset) +	{ +	} + +	public function lang() +	{ +		return implode(' ', func_get_args()); +	} +}  | 
