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\Globals
;
15 * Test case for intl function implementations.
17 * @author Bernhard Schussek <bschussek@gmail.com>
19 abstract class AbstractIntlGlobalsTest
extends \PHPUnit_Framework_TestCase
21 public function errorNameProvider()
24 array(-129, '[BOGUS UErrorCode]'),
25 array(0, 'U_ZERO_ERROR'),
26 array(1, 'U_ILLEGAL_ARGUMENT_ERROR'),
27 array(9, 'U_PARSE_ERROR'),
28 array(129, '[BOGUS UErrorCode]'),
33 * @dataProvider errorNameProvider
35 public function testGetErrorName($errorCode, $errorName)
37 $this->assertSame($errorName, $this->getIntlErrorName($errorCode));
40 abstract protected function getIntlErrorName($errorCode);