diff options
Diffstat (limited to 'www/wiki/extensions/Translate/tests/phpunit/MockWikiMessageGroup.php')
-rw-r--r-- | www/wiki/extensions/Translate/tests/phpunit/MockWikiMessageGroup.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/www/wiki/extensions/Translate/tests/phpunit/MockWikiMessageGroup.php b/www/wiki/extensions/Translate/tests/phpunit/MockWikiMessageGroup.php new file mode 100644 index 00000000..f10e1903 --- /dev/null +++ b/www/wiki/extensions/Translate/tests/phpunit/MockWikiMessageGroup.php @@ -0,0 +1,22 @@ +<?php +/** + * This file contains an unmanaged message group implementation. + * + * @file + * @author Niklas Laxström + * @author Siebrand Mazeland + * @copyright Copyright © 2008-2013, Niklas Laxström, Siebrand Mazeland + * @license GPL-2.0-or-later + */ + +class MockWikiMessageGroup extends WikiMessageGroup { + public function __construct( $id, array $messages ) { + parent::__construct( $id, 'unused' ); + $this->id = $id; + $this->messages = $messages; + } + + public function getDefinitions() { + return $this->messages; + } +} |