xref: /PHP-8.0/ext/intl/tests/bug74705.phpt (revision a555cc0b)
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--EXPECT--
16int(1)
17int(1)
18int(2)
19int(2)
20