diff options
author | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-10-25 23:21:07 +0200 |
---|---|---|
committer | Klaus Weidenbach <Klaus.Weidenbach@gmx.net> | 2017-10-29 22:00:12 +0100 |
commit | 66832c41e9fff481c20ca219b3cc0a4e53b8b551 (patch) | |
tree | ffff0bb391350ec9c8c16bcf8781bce6d866cf89 /library/intl/tests/NumberFormat/NumberFormatTest.php | |
parent | 8e4c5db766ce23d05b8507991b04fece743147de (diff) | |
download | volse-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/NumberFormat/NumberFormatTest.php')
-rw-r--r-- | library/intl/tests/NumberFormat/NumberFormatTest.php | 131 |
1 files changed, 0 insertions, 131 deletions
diff --git a/library/intl/tests/NumberFormat/NumberFormatTest.php b/library/intl/tests/NumberFormat/NumberFormatTest.php deleted file mode 100644 index 299dc41cb..000000000 --- a/library/intl/tests/NumberFormat/NumberFormatTest.php +++ /dev/null @@ -1,131 +0,0 @@ -<?php - -namespace CommerceGuys\Intl\Tests\NumberFormat; - -use CommerceGuys\Intl\NumberFormat\NumberFormat; - -/** - * @coversDefaultClass CommerceGuys\Intl\NumberFormat\NumberFormat - */ -class NumberFormatTest extends \PHPUnit_Framework_TestCase -{ - /** - * @var NumberFormat - */ - protected $numberFormat; - - public function setUp() - { - $this->numberFormat = new NumberFormat(); - } - - /** - * @covers ::getLocale - * @covers ::setLocale - */ - public function testLocale() - { - $this->numberFormat->setLocale('en'); - $this->assertEquals('en', $this->numberFormat->getLocale()); - } - - /** - * @covers ::getNumberingSystem - * @covers ::setNumberingSystem - */ - public function testNumberingSystem() - { - $this->numberFormat->setNumberingSystem('latn'); - $this->assertEquals('latn', $this->numberFormat->getNumberingSystem()); - } - - /** - * @covers ::getDecimalSeparator - * @covers ::setDecimalSeparator - */ - public function testDecimalSeparator() - { - $this->numberFormat->setDecimalSeparator('.'); - $this->assertEquals('.', $this->numberFormat->getDecimalSeparator()); - } - - /** - * @covers ::getGroupingSeparator - * @covers ::setGroupingSeparator - */ - public function testGroupingSeparator() - { - $this->numberFormat->setGroupingSeparator(','); - $this->assertEquals(',', $this->numberFormat->getGroupingSeparator()); - } - - /** - * @covers ::getPlusSign - * @covers ::setPlusSign - */ - public function testPlusSign() - { - $this->numberFormat->setPlusSign('+'); - $this->assertEquals('+', $this->numberFormat->getPlusSign()); - } - - /** - * @covers ::getMinusSign - * @covers ::setMinusSign - */ - public function testMinusSign() - { - $this->numberFormat->setMinusSign('-'); - $this->assertEquals('-', $this->numberFormat->getMinusSign()); - } - - /** - * @covers ::getPercentSign - * @covers ::setPercentSign - */ - public function testPercentSign() - { - $this->numberFormat->setPercentSign('%'); - $this->assertEquals('%', $this->numberFormat->getPercentSign()); - } - - /** - * @covers ::getDecimalPattern - * @covers ::setDecimalPattern - */ - public function testDecimalPattern() - { - $this->numberFormat->setDecimalPattern('#,##0.###'); - $this->assertEquals('#,##0.###', $this->numberFormat->getDecimalPattern()); - } - - /** - * @covers ::getPercentPattern - * @covers ::setPercentPattern - */ - public function testPercentPattern() - { - $this->numberFormat->setPercentPattern('#,##0%'); - $this->assertEquals('#,##0%', $this->numberFormat->getPercentPattern()); - } - - /** - * @covers ::getCurrencyPattern - * @covers ::setCurrencyPattern - */ - public function testCurrencyPattern() - { - $this->numberFormat->setCurrencyPattern('¤#,##0.00'); - $this->assertEquals('¤#,##0.00', $this->numberFormat->getCurrencyPattern()); - } - - /** - * @covers ::getAccountingCurrencyPattern - * @covers ::setAccountingCurrencyPattern - */ - public function testAccountingCurrencyPattern() - { - $this->numberFormat->setAccountingCurrencyPattern('¤#,##0.00;(¤#,##0.00)'); - $this->assertEquals('¤#,##0.00;(¤#,##0.00)', $this->numberFormat->getAccountingCurrencyPattern()); - } -} |