diff options
Diffstat (limited to 'vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php')
-rw-r--r-- | vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php b/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php deleted file mode 100644 index 9fb65af3..00000000 --- a/vendor/symfony/icu/Symfony/Component/Icu/Tests/IcuIntegrationTest.php +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
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 | |||
12 | namespace Symfony\Component\Icu\Tests; | ||
13 | |||
14 | use Symfony\Component\Icu\IcuCurrencyBundle; | ||
15 | use Symfony\Component\Icu\IcuLanguageBundle; | ||
16 | use Symfony\Component\Icu\IcuLocaleBundle; | ||
17 | use Symfony\Component\Icu\IcuRegionBundle; | ||
18 | use Symfony\Component\Intl\ResourceBundle\Reader\PhpBundleReader; | ||
19 | use 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 | */ | ||
26 | class 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 | } | ||