Annotation of embedaddon/php/ext/intl/tests/intl_get_error_message.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: intl_get_error_message()
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7: /*
! 8: * Check getting global error message.
! 9: */
! 10:
! 11: // Suppress warning messages.
! 12: error_reporting( E_ERROR );
! 13:
! 14: if( collator_get_locale() !== false )
! 15: echo "failed\n";
! 16: else
! 17: printf( "%s\n", intl_get_error_message() );
! 18:
! 19: ?>
! 20: --EXPECT--
! 21: collator_get_locale: unable to parse input params: U_ILLEGAL_ARGUMENT_ERROR
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>