4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Intl\Tests\NumberFormatter\Verification
;
14 use Symfony\Component\Intl\Tests\NumberFormatter\AbstractNumberFormatterTest
;
15 use Symfony\Component\Intl\Util\IntlTestHelper
;
18 * Note that there are some values written like -2147483647 - 1. This is the lower 32bit int max and is a known
21 class NumberFormatterTest
extends AbstractNumberFormatterTest
23 protected function setUp()
25 IntlTestHelper
::requireFullIntl($this);
30 public function testCreate()
32 $this->assertInstanceOf('\NumberFormatter', \NumberFormatter
::create('en', \NumberFormatter
::DECIMAL
));
35 protected function getNumberFormatter($locale = 'en', $style = null, $pattern = null)
37 return new \
NumberFormatter($locale, $style, $pattern);
40 protected function getIntlErrorMessage()
42 return intl_get_error_message();
45 protected function getIntlErrorCode()
47 return intl_get_error_code();
50 protected function isIntlFailure($errorCode)
52 return intl_is_failure($errorCode);