xref: /php-src/ext/intl/uchar/tests/bug70454.phpt (revision 74859783)
1--TEST--
2Bug #70454 (IntlChar::forDigit second parameter should be optional)
3--EXTENSIONS--
4intl
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