aboutsummaryrefslogtreecommitdiffstats
path: root/library/intl/tests/LocaleResolverTest.php
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-25 23:21:07 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-10-29 22:00:12 +0100
commit66832c41e9fff481c20ca219b3cc0a4e53b8b551 (patch)
treeffff0bb391350ec9c8c16bcf8781bce6d866cf89 /library/intl/tests/LocaleResolverTest.php
parent8e4c5db766ce23d05b8507991b04fece743147de (diff)
downloadvolse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.tar.gz
volse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.tar.bz2
volse-hubzilla-66832c41e9fff481c20ca219b3cc0a4e53b8b551.zip
:arrow_up: Update intl library.
Update intl library from v0.4? (2014) to v0.7.4 (2016). Use global composer autoloader now.
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');
- }
-}