aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-08-03 19:26:54 +0200
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-08-03 19:26:54 +0200
commit4f5b44bd3bd490309eb2ba7b44df4769816ba729 (patch)
tree6cefe170dfe0a5a361cb1e2d1fc4d580a3316d02 /vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php
parent2b840e0cfb63a453bea67a98541f3df9c273c5f5 (diff)
downloadwallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.gz
wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.tar.zst
wallabag-4f5b44bd3bd490309eb2ba7b44df4769816ba729.zip
twig implementation
Diffstat (limited to 'vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php')
-rw-r--r--vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php55
1 files changed, 55 insertions, 0 deletions
diff --git a/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php b/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php
new file mode 100644
index 00000000..9fb65af3
--- /dev/null
+++ b/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php
@@ -0,0 +1,55 @@
1<?php
2
3/*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12namespace Symfony\Component\Icu\Tests;
13
14use Symfony\Component\Icu\IcuCurrencyBundle;
15use Symfony\Component\Icu\IcuLanguageBundle;
16use Symfony\Component\Icu\IcuLocaleBundle;
17use Symfony\Component\Icu\IcuRegionBundle;
18use Symfony\Component\Intl\ResourceBundle\Reader\PhpBundleReader;
19use Symfony\Component\Intl\ResourceBundle\Reader\StructuredBundleReader;
20
21/**
22 * Verifies that the data files can actually be read.
23 *
24 * @author Bernhard Schussek <bschussek@gmail.com>
25 */
26class IcuIntegrationTest extends \PHPUnit_Framework_TestCase
27{
28 public function testCurrencyBundle()
29 {
30 $bundle = new IcuCurrencyBundle(new StructuredBundleReader(new PhpBundleReader()));
31
32 $this->assertSame('€', $bundle->getCurrencySymbol('EUR', 'en'));
33 }
34
35 public function testLanguageBundle()
36 {
37 $bundle = new IcuLanguageBundle(new StructuredBundleReader(new PhpBundleReader()));
38
39 $this->assertSame('German', $bundle->getLanguageName('de', null, 'en'));
40 }
41
42 public function testLocaleBundle()
43 {
44 $bundle = new IcuLocaleBundle(new StructuredBundleReader(new PhpBundleReader()));
45
46 $this->assertSame('Azerbaijani', $bundle->getLocaleName('az', 'en'));
47 }
48
49 public function testRegionBundle()
50 {
51 $bundle = new IcuRegionBundle(new StructuredBundleReader(new PhpBundleReader()));
52
53 $this->assertSame('United Kingdom', $bundle->getCountryName('GB', 'en'));
54 }
55}