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