Annotation of embedaddon/php/ext/intl/tests/symfony_format_type_int64_intl6.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Symfony StubNumberFormatterTest#testFormatTypeInt64Intl #6
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 #testFormatTypeInt64Intl
10: $unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:1.1000000000000001;i:2;s:7:"SFD1.00";}');
11:
12: var_dump($unit_test_args);
13:
14: // execute the code from #testFormatTypeInt64Intl
15: $unit_test_args[0]->format($unit_test_args[1], \NumberFormatter::TYPE_INT64);
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.00"
29: }
30: == didn't crash ==
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>