aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/tests/DummyRepository.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-12-30 15:25:06 -0800
committerfriendica <info@friendica.com>2014-12-30 15:25:06 -0800
commitabd345f80f5074d325fd137e48a23925eaa66802 (patch)
treec5a469a001b2eb9ae5482b93b557a42e3181208f /library/intl/tests/DummyRepository.php
parent2f650b74d35335815c48537cd03c81cc92a3c4f8 (diff)
parentae9d08267c632cae36a4ebd34c2077fd0051e0e7 (diff)
downloadvolse-hubzilla-abd345f80f5074d325fd137e48a23925eaa66802.tar.gz
volse-hubzilla-abd345f80f5074d325fd137e48a23925eaa66802.tar.bz2
volse-hubzilla-abd345f80f5074d325fd137e48a23925eaa66802.zip
Merge branch 'master' into trinidad
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);
+ }
+}