Annotation of embedaddon/php/ext/intl/tests/formatter_format_conv.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: numfmt_format() with type conversion
! 3: --SKIPIF--
! 4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: function ut_main()
! 9: {
! 10: $fmt = ut_nfmt_create( 'en_US', NumberFormatter::DECIMAL );
! 11: $number = 1234567.891234567890000;
! 12:
! 13: $str_res = ut_nfmt_format ($fmt, $number, NumberFormatter::TYPE_INT32)."\n";
! 14: return $str_res;
! 15: }
! 16:
! 17: include_once( 'ut_common.inc' );
! 18:
! 19: // Run the test
! 20: ut_run();
! 21:
! 22: ?>
! 23: --EXPECT--
! 24: 1,234,567
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>