Modified: php/php-src/trunk/ext/standard/tests/strings/money_format_basic1.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_basic1.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_basic1.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -1,14 +1,10 @@ --TEST-- -Test money_format() function : basic functionality using national currency symbols +Test money_format() function : basic functionality --SKIPIF-- --FILE-- ===DONE=== --EXPECTF-- -*** Testing money_format() : basic functionality using national currency symbols*** - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d +*** Testing money_format() : basic functionality*** Format values with 14 positions, 8 digits to left, 2 to right using national format -unicode(15) " $ 1,234.57" -unicode(15) "-$ 1,234.57" +unicode +unicode Format again but with ( for negative values -unicode(15) " $ 1,234.57" -unicode(16) "($ 1,234.57)" +unicode +unicode Format with 0 for padding character -unicode(15) " $000001,234.57" -unicode(15) "-$000001,234.57" +unicode +unicode Format again with * for padding character -unicode(15) " $*****1,234.57" -unicode(15) "-$*****1,234.57" +unicode +unicode Format again but disable grouping character -unicode(14) " $****1234.57" -unicode(14) " -$****1234.57" +unicode +unicode Format again suppress currency symbol -unicode(14) " *****1,234.57" -unicode(14) "-*****1,234.57" - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d +unicode +unicode ===DONE=== Deleted: php/php-src/trunk/ext/standard/tests/strings/money_format_basic2.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_basic2.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_basic2.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -1,87 +0,0 @@ ---TEST-- -Test money_format() function : basic functionality using international currency symbols ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing money_format() : basic functionality using international currency symbols*** - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d -Format with 14 positions, 8 digits to left, 2 to right using national format -unicode(18) " USD 1,234.57" -unicode(18) "-USD 1,234.57" -Format with ( for negative values -unicode(18) " USD 1,234.57" -unicode(19) "(USD 1,234.57)" -Format with 0 for padding character -unicode(18) " USD 000001,234.57" -unicode(18) "-USD 000001,234.57" -Format with * for padding character -unicode(18) " USD *****1,234.57" -unicode(18) "-USD *****1,234.57" -Format again but disable grouping character -unicode(16) " USD ****1234.57" -unicode(16) "-USD ****1234.57" -Format again but suppress currency symbol -unicode(14) " *****1,234.57" -unicode(14) "-*****1,234.57" - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d -===DONE=== Deleted: php/php-src/trunk/ext/standard/tests/strings/money_format_basic3.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_basic3.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_basic3.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -1,87 +0,0 @@ ---TEST-- -Test money_format() function : basic functionality using national currency symbols and de_DE locale ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing money_format() : basic functionality using national currency symbols and de_DE locale*** - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d -Format values with 14 positions, 8 digits to left, 2 to right using national format -unicode(18) " 1.234,57 EUR" -unicode(18) "- 1.234,57 EUR" -Format again but with ( for negative values -unicode(18) " 1.234,57 EUR" -unicode(19) "( 1.234,57 EUR)" -Format with 0 for padding character -unicode(18) " 000001.234,57 EUR" -unicode(18) "-000001.234,57 EUR" -Format again with * for padding character -unicode(18) " *****1.234,57 EUR" -unicode(18) "-*****1.234,57 EUR" -Format again but disable grouping character -unicode(16) " ****1234,57 EUR" -unicode(16) "-****1234,57 EUR" -Format again suppress currency symbol -unicode(14) " *****1.234,57" -unicode(14) "-*****1.234,57" - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d -===DONE=== \ No newline at end of file Modified: php/php-src/trunk/ext/standard/tests/strings/money_format_error.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_error.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_error.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -13,6 +13,10 @@ * Source code: ext/standard/string.c */ +// =========================================================================================== +// = We do not test for exact return-values, as those might be different between OS-versions = +// =========================================================================================== + $string = '%14#8.2n'; $value = 1234.56; $extra_arg = 10; Modified: php/php-src/trunk/ext/standard/tests/strings/money_format_variation1.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_variation1.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_variation1.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -2,13 +2,9 @@ Test money_format() function : usage variations - test values for $format argument --SKIPIF-- --FILE-- ===DONE=== --EXPECTF-- -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d *** Testing money_format() function: with unexpected inputs for 'format' argument *** -- Iteration 1 -- -unicode(1) "0" +unicode -- Iteration 2 -- -unicode(1) "1" +unicode -- Iteration 3 -- -unicode(3) "255" +unicode -- Iteration 4 -- -unicode(3) "256" +unicode -- Iteration 5 -- -unicode(10) "2147483647" +unicode -- Iteration 6 -- -unicode(11) "-2147483648" +unicode -- Iteration 7 -- -unicode(3) "0.5" +unicode -- Iteration 8 -- -unicode(5) "-20.5" +unicode -- Iteration 9 -- -unicode(12) "101234567000" +unicode -- Iteration 10 -- Warning: money_format() expects parameter 1 to be binary string, array given in %s on line %d @@ -143,39 +135,37 @@ Warning: money_format() expects parameter 1 to be binary string, array given in %s on line %d NULL -- Iteration 13 -- -unicode(1) "1" +unicode -- Iteration 14 -- -unicode(0) "" +unicode -- Iteration 15 -- -unicode(1) "1" +unicode -- Iteration 16 -- -unicode(0) "" +unicode -- Iteration 17 -- -unicode(0) "" +unicode -- Iteration 18 -- -unicode(0) "" +unicode -- Iteration 19 -- -unicode(4) "abcd" +unicode -- Iteration 20 -- -unicode(4) "abcd" +unicode -- Iteration 21 -- -unicode(5) "0x12f" +unicode -- Iteration 22 -- -unicode(18) " *****1,234.56abcd" +unicode -- Iteration 23 -- Warning: money_format() expects parameter 1 to be binary string, object given in %s on line %d NULL -- Iteration 24 -- -unicode(17) " sample object " +unicode -- Iteration 25 -- Warning: money_format() expects parameter 1 to be binary string, resource given in %s on line %d NULL -- Iteration 26 -- -unicode(0) "" +unicode -- Iteration 27 -- -unicode(0) "" - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d +unicode ===DONE=== \ No newline at end of file Modified: php/php-src/trunk/ext/standard/tests/strings/money_format_variation2.phpt =================================================================== --- php/php-src/trunk/ext/standard/tests/strings/money_format_variation2.phpt 2009-07-17 16:04:06 UTC (rev 284274) +++ php/php-src/trunk/ext/standard/tests/strings/money_format_variation2.phpt 2009-07-17 16:21:00 UTC (rev 284275) @@ -2,13 +2,9 @@ Test money_format() function : usage variations - test values for $number argument --SKIPIF-- --FILE-- ===DONE=== --EXPECTF-- -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d *** Testing money_format() function: with unexpected inputs for 'number' argument *** -- Iteration 1 -- -unicode(18) " USD 0.00" +unicode -- Iteration 2 -- -unicode(18) " USD 1.00" +unicode -- Iteration 3 -- -unicode(18) " USD 255.00" +unicode -- Iteration 4 -- -unicode(18) " USD 256.00" +unicode -- Iteration 5 -- -unicode(21) " USD 2,147,483,647.00" +unicode -- Iteration 6 -- -unicode(21) "-USD 2,147,483,648.00" +unicode -- Iteration 7 -- -unicode(18) " USD 10.50" +unicode -- Iteration 8 -- -unicode(18) "-USD 20.50" +unicode -- Iteration 9 -- -unicode(23) " USD 101,234,567,000.00" +unicode -- Iteration 10 -- Warning: money_format() expects parameter 2 to be double, array given in %s on line %d @@ -143,17 +135,17 @@ Warning: money_format() expects parameter 2 to be double, array given in %s on line %d NULL -- Iteration 13 -- -unicode(18) " USD 1.00" +unicode -- Iteration 14 -- -unicode(18) " USD 0.00" +unicode -- Iteration 15 -- -unicode(18) " USD 1.00" +unicode -- Iteration 16 -- -unicode(18) " USD 0.00" +unicode -- Iteration 17 -- -unicode(18) " USD 0.00" +unicode -- Iteration 18 -- -unicode(18) " USD 0.00" +unicode -- Iteration 19 -- Warning: money_format() expects parameter 2 to be double, Unicode string given in %s on line %d @@ -163,7 +155,7 @@ Warning: money_format() expects parameter 2 to be double, Unicode string given in %s on line %d NULL -- Iteration 21 -- -unicode(18) " USD 303.00" +unicode -- Iteration 22 -- Warning: money_format() expects parameter 2 to be double, Unicode string given in %s on line %d @@ -181,9 +173,7 @@ Warning: money_format() expects parameter 2 to be double, resource given in %s on line %d NULL -- Iteration 26 -- -unicode(18) " USD 0.00" +unicode -- Iteration 27 -- -unicode(18) " USD 0.00" - -Deprecated: setlocale(): deprecated in Unicode mode, please use ICU locale functions in %s on line %d +unicode ===DONE=== \ No newline at end of file