mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-27 11:04:15 +02:00
43 lines
722 B
PHP
43 lines
722 B
PHP
<?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): bool
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public function offsetGet($offset): mixed
|
|
{
|
|
return $offset;
|
|
}
|
|
|
|
public function offsetSet($offset, $value): void
|
|
{
|
|
}
|
|
|
|
public function offsetUnset($offset): void
|
|
{
|
|
}
|
|
|
|
public function lang(): string
|
|
{
|
|
return implode(' ', func_get_args());
|
|
}
|
|
}
|