Annotation of embedaddon/php/ext/intl/tests/intl_get_error_code.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: intl_get_error_code()
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7: /*
! 8: * Check getting global error code.
! 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: {
! 18: $check_code = ( intl_get_error_code() != 0 );
! 19: echo ( $check_code ? "ok" : "failed" ) . "\n";
! 20: }
! 21:
! 22: ?>
! 23: --EXPECT--
! 24: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>