Annotation of embedaddon/php/ext/intl/tests/symfony_format_type_double_intl4.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Symfony StubNumberFormatterTest#testFormatTypeDoubleIntl #4
3: --SKIPIF--
4: <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5: --FILE--
6: <?php
7:
8:
9: // PHP Unit's code to unserialize data passed as args to #testFormatTypeDoubleIntl
10: $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:7:"SFD1.10";}');
11:
12: var_dump($unit_test_args);
13:
14: // execute the code from #testFormatTypeDoubleIntl
15: $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_DOUBLE);
16:
17: echo "== didn't crash ==".PHP_EOL;
18:
19: ?>
20: --EXPECT--
21: array(3) {
22: [0]=>
23: object(NumberFormatter)#1 (0) {
24: }
25: [1]=>
26: float(1.1)
27: [2]=>
28: string(7) "SFD1.10"
29: }
30: == didn't crash ==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>