php-src/ext/intl/tests/intl_get_error_message.phpt
Stanislav Malyshev 3e74c7848d Merge intl extension to HEAD
# do not use yet in HEAD, needs some adjustment
2008-07-07 23:42:30 +00:00

22 lines
426 B
PHP
Executable File

--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