Annotation of embedaddon/php/ext/intl/tests/intl_is_failure.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: intl_is_failure()
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7: /*
! 8: * Check determining failure error codes.
! 9: */
! 10:
! 11:
! 12: function check( $err_code )
! 13: {
! 14: var_export( intl_is_failure( $err_code ) );
! 15: echo "\n";
! 16: }
! 17:
! 18: check( U_ZERO_ERROR );
! 19: check( U_USING_FALLBACK_WARNING );
! 20: check( U_ILLEGAL_ARGUMENT_ERROR );
! 21: ?>
! 22: --EXPECT--
! 23: false
! 24: false
! 25: true
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>