1--TEST--
2Symfony StubNumberFormatterTest#testFormatTypeInt64Intl #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 #testFormatTypeInt64Intl
10$unit_test_args = unserialize('a:3:{i:0;O:15:"NumberFormatter":0:{}i:1;d:-2147483649;i:2;s:14:"-2,147,483,649";}');
11
12var_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
17echo "== didn't crash ==".PHP_EOL;
18
19?>
20--EXPECT--
21array(3) {
22  [0]=>
23  object(NumberFormatter)#1 (0) {
24  }
25  [1]=>
26  float(-2147483649)
27  [2]=>
28  string(14) "-2,147,483,649"
29}
30== didn't crash ==
31