php-src/ext/intl/tests/intl_error_name.phpt
Gustavo André dos Santos Lopes 9762609cec Remove executable bit from files
2012-07-30 10:25:17 +02:00

26 lines
422 B
PHP

--TEST--
intl_error_name()
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php
/*
* Check getting error string by integer error code.
*/
function check( $err_code )
{
echo intl_error_name( $err_code ) . "\n";
}
check( U_ZERO_ERROR );
check( U_ILLEGAL_ARGUMENT_ERROR );
check( U_USING_FALLBACK_WARNING );
?>
--EXPECT--
U_ZERO_ERROR
U_ILLEGAL_ARGUMENT_ERROR
U_USING_FALLBACK_WARNING