diff options
Diffstat (limited to 'MLEB/Translate/tests/phpunit/mocks/MockCacheMessageGroupLoader.php')
-rw-r--r-- | MLEB/Translate/tests/phpunit/mocks/MockCacheMessageGroupLoader.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/MLEB/Translate/tests/phpunit/mocks/MockCacheMessageGroupLoader.php b/MLEB/Translate/tests/phpunit/mocks/MockCacheMessageGroupLoader.php new file mode 100644 index 00000000..fcb386fb --- /dev/null +++ b/MLEB/Translate/tests/phpunit/mocks/MockCacheMessageGroupLoader.php @@ -0,0 +1,20 @@ +<?php +class MockCacheMessageGroupLoader extends MessageGroupLoader + implements CachedMessageGroupLoader { + + public function getGroups() { + return []; + } + + public function recache() { + } + + public function clearCache() { + } + + public static function registerLoader( array &$groupLoader, array $deps ) { + $groupLoader[] = new self( new MessageGroupWANCache( + $deps['cache'] + ) ); + } +} |