xref: /PHP-8.2/ext/intl/tests/intl_error_name.phpt (revision 74859783)
1--TEST--
2intl_error_name()
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7
8/*
9 * Check getting error string by integer error code.
10 */
11
12
13function check( $err_code )
14{
15    echo intl_error_name( $err_code ) . "\n";
16}
17
18check( U_ZERO_ERROR );
19check( U_ILLEGAL_ARGUMENT_ERROR );
20check( U_USING_FALLBACK_WARNING );
21?>
22--EXPECT--
23U_ZERO_ERROR
24U_ILLEGAL_ARGUMENT_ERROR
25U_USING_FALLBACK_WARNING
26