aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/tests/DummyRepository.php
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2014-12-31 10:42:08 +0100
committerStefan Parviainen <saparvia@caterva.eu>2014-12-31 10:42:08 +0100
commit7bf7f8180dbc3a89824815de3bc1e4f40857d2f6 (patch)
tree34e51239e753204989af7d82793c24bb3b304ecb /library/intl/tests/DummyRepository.php
parent24a16434bccb7b41d026767f81ffe5f060d566bf (diff)
downloadvolse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.tar.gz
volse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.tar.bz2
volse-hubzilla-7bf7f8180dbc3a89824815de3bc1e4f40857d2f6.zip
Revert "Revert "Language names via intl library.""
This reverts commit 4f35efa0bad4ae6489b63f3eebafe6542d654094.
Diffstat (limited to 'library/intl/tests/DummyRepository.php')
-rw-r--r--library/intl/tests/DummyRepository.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/library/intl/tests/DummyRepository.php b/library/intl/tests/DummyRepository.php
new file mode 100644
index 000000000..0d9ca760b
--- /dev/null
+++ b/library/intl/tests/DummyRepository.php
@@ -0,0 +1,23 @@
+<?php
+
+namespace CommerceGuys\Intl\Tests;
+
+use CommerceGuys\Intl\LocaleResolverTrait;
+
+/**
+ * Dummy repository used for testing the LocaleResolverTrait.
+ */
+class DummyRepository
+{
+ use LocaleResolverTrait;
+
+ public function __construct()
+ {
+ $this->definitionPath = 'vfs://resources/dummy/';
+ }
+
+ public function runResolveLocale($locale, $fallbackLocale = null)
+ {
+ return $this->resolveLocale($locale, $fallbackLocale);
+ }
+}