1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00
php-phpbb/tests/mock/lang.php
2013-06-06 23:29:50 +02:00

39 lines
565 B
PHP

<?php
/**
*
* @package testing
* @copyright (c) 2010 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
/**
* 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());
}
}