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

22 lines
426 B
PHP

--TEST--
intl_get_error_message()
--SKIPIF--
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
--FILE--
<?php
/*
* Check getting global error message.
*/
// Suppress warning messages.
error_reporting( E_ERROR );
if( collator_get_locale() !== false )
echo "failed\n";
else
printf( "%s\n", intl_get_error_message() );
?>
--EXPECT--
collator_get_locale: unable to parse input params: U_ILLEGAL_ARGUMENT_ERROR