Ejemplo n.º 1
0
/**
 * 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);
}
Ejemplo n.º 2
0
 /**
  * @dataProvider codeProvider
  */
 public function testGetErrorNameWithIntl($code, $name)
 {
     $this->skipIfIntlExtensionIsNotLoaded();
     $this->assertSame(intl_error_name($code), StubIntl::getErrorName($code));
 }