/** * Stub implementation for the intl_error_name function of the intl extension * * @return String will be the same as the name of the error code constant * * @see Symfony\Component\Locale\Stub\StubIntl::getErrorName */ function intl_error_name($errorCode) { return StubIntl::getErrorName($errorCode); }
/** * @dataProvider codeProvider */ public function testGetErrorNameWithIntl($code, $name) { $this->skipIfIntlExtensionIsNotLoaded(); $this->assertSame(intl_error_name($code), StubIntl::getErrorName($code)); }