xref: /PHP-7.3/ext/intl/uchar/tests/bug70454.phpt (revision 1c902e2e)
1--TEST--
2Bug #70454 (IntlChar::forDigit second parameter should be optional)
3--SKIPIF--
4<?php if (!extension_loaded('intl')) die("skip requires ext/intl") ?>
5--FILE--
6<?php
7var_dump(IntlChar::forDigit(0));
8var_dump(IntlChar::forDigit(3));
9var_dump(IntlChar::forDigit(3, 10));
10var_dump(IntlChar::forDigit(10));
11var_dump(IntlChar::forDigit(10, 16));
12?>
13--EXPECT--
14int(48)
15int(51)
16int(51)
17int(0)
18int(97)
19