xref: /PHP-7.4/ext/mysqli/tests/bug74595.phpt (revision 2e5a747b)
1--TEST--
2Bug #74595 (ReflectionMethod::getParameters returns incorrect number of parameters)
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9$class = new ReflectionClass('mysqli');
10$method = $class->getMethod('query');
11var_dump($method->getParameters());
12?>
13--EXPECTF--
14array(2) {
15  [0]=>
16  object(ReflectionParameter)#%d (1) {
17    ["name"]=>
18    string(5) "query"
19  }
20  [1]=>
21  object(ReflectionParameter)#%d (1) {
22    ["name"]=>
23    string(10) "resultmode"
24  }
25}
26