xref: /PHP-7.3/ext/intl/uchar/tests/bug70453.phpt (revision 13729094)
1--TEST--
2Bug #70453 (IntlChar::foldCase() incorrect arguments and missing constants)
3--SKIPIF--
4<?php if (!extension_loaded('intl')) die("skip requires ext/intl") ?>
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