xref: /PHP-7.3/ext/intl/tests/bug74705.phpt (revision 78970d53)
1--TEST--
2Bug #74705 Wrong reflection on Collator::getSortKey
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7$rm = new ReflectionMethod(Collator::class, 'getSortKey');
8var_dump($rm->getNumberOfParameters());
9var_dump($rm->getNumberOfRequiredParameters());
10
11$rf = new ReflectionFunction('collator_get_sort_key');
12var_dump($rf->getNumberOfParameters());
13var_dump($rf->getNumberOfRequiredParameters());
14?>
15===DONE===
16--EXPECT--
17int(1)
18int(1)
19int(2)
20int(2)
21===DONE===
22