xref: /PHP-8.2/ext/intl/uchar/tests/bug70453.phpt (revision 74859783)
1--TEST--
2Bug #70453 (IntlChar::foldCase() incorrect arguments and missing constants)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7$method = new ReflectionMethod('IntlChar', 'foldCase');
8$param = $method->getParameters()[1];
9var_dump($param->name, $param->isOptional(), $param->isPassedByReference());
10var_dump(IntlChar::foldCase('I', IntlChar::FOLD_CASE_DEFAULT));
11var_dump(IntlChar::foldCase('I', IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I));
12?>
13--EXPECT--
14string(7) "options"
15bool(true)
16bool(false)
17string(1) "i"
18string(2) "ı"
19