xref: /PHP-5.6/ext/intl/tests/intl_error_name.phpt (revision 9762609c)
1--TEST--
2intl_error_name()
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
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