xref: /PHP-8.3/ext/intl/tests/bug74468.phpt (revision 74859783)
1--TEST--
2Bug #74468 Wrong reflection on Collator::sortWithSortKeys
3--EXTENSIONS--
4intl
5--SKIPIF--
6<?php if (version_compare(INTL_ICU_VERSION, '51.2') >=  0) die('skip for ICU < 51.2'); ?>
7--FILE--
8<?php
9$rm = new ReflectionMethod(Collator::class, 'sortWithSortKeys');
10var_dump($rm->getNumberOfParameters());
11var_dump($rm->getNumberOfRequiredParameters());
12
13$rf = new ReflectionFunction('collator_sort_with_sort_keys');
14var_dump($rf->getNumberOfParameters());
15var_dump($rf->getNumberOfRequiredParameters());
16?>
17--EXPECT--
18int(1)
19int(1)
20int(2)
21int(2)
22