aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/tests/LocaleResolverTest.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-11-04 10:18:34 +0100
committerGitHub <noreply@github.com>2017-11-04 10:18:34 +0100
commit39c194c5c32e49f461b8b42a3f4e411a3a5cde3c (patch)
tree8ca92c3e6e31166920b02913e89d580025bf6edf /library/intl/tests/LocaleResolverTest.php
parent9dfb471c0bbf2978e528689f6c0885ff9abddc7d (diff)
parent1be98d7b7fea30a929d27e7aa0b1412da3276b2c (diff)
downloadvolse-hubzilla-39c194c5c32e49f461b8b42a3f4e411a3a5cde3c.tar.gz
volse-hubzilla-39c194c5c32e49f461b8b42a3f4e411a3a5cde3c.tar.bz2
volse-hubzilla-39c194c5c32e49f461b8b42a3f4e411a3a5cde3c.zip
Merge pull request #891 from dawnbreak/langlibs
Langlibs updates
Diffstat (limited to 'library/intl/tests/LocaleResolverTest.php')
-rw-r--r--library/intl/tests/LocaleResolverTest.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/library/intl/tests/LocaleResolverTest.php b/library/intl/tests/LocaleResolverTest.php
deleted file mode 100644
index a52dea353..000000000
--- a/library/intl/tests/LocaleResolverTest.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-
-namespace CommerceGuys\Intl\Tests;
-
-use org\bovigo\vfs\vfsStream;
-
-/**
- * @coversDefaultClass \CommerceGuys\Intl\LocaleResolverTrait
- */
-class LocaleResolverTest extends \PHPUnit_Framework_TestCase
-{
- /**
- * @var DummyRepository
- */
- protected $repository;
-
- public function setUp()
- {
- // Simulate the presence of various definitions.
- $root = vfsStream::setup('resources');
- vfsStream::newFile('dummy/bs-Cyrl.json')->at($root)->setContent('');
- vfsStream::newFile('dummy/bs.json')->at($root)->setContent('');
- vfsStream::newFile('dummy/en.json')->at($root)->setContent('');
-
- $this->repository = new DummyRepository();
- }
-
- /**
- * @covers ::resolveLocale
- * @covers ::getLocaleVariants
- */
- public function testLocaleFallback()
- {
- $locale = $this->repository->runResolveLocale('bs-Cyrl-BA');
- $this->assertEquals('bs-Cyrl', $locale);
- $locale = $this->repository->runResolveLocale('bs-Latn-BA');
- $this->assertEquals('bs', $locale);
- $locale = $this->repository->runResolveLocale('de', 'en');
- $this->assertEquals('en', $locale);
- }
-
- /**
- * @covers ::resolveLocale
- * @covers ::getLocaleVariants
- * @expectedException \CommerceGuys\Intl\Exception\UnknownLocaleException
- */
- public function testInvalidLocale()
- {
- $locale = $this->repository->runResolveLocale('de');
- }
-}