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