xref: /PHP-7.4/ext/dom/tests/bug74416.phpt (revision 84488d92)
1--TEST--
2Bug #74416 Wrong reflection on DOMNode::cloneNode
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6?>
7--FILE--
8<?php
9$rm = new ReflectionMethod(DOMNode::class, "cloneNode");
10printf("%d\n%d\n", $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters());
11foreach ($rm->getParameters() as $param) {
12    printf("Parameter #%d %s OPTIONAL\n", $param->getPosition(), $param->isOptional() ? "IS" : "IS NOT");
13}
14?>
15===DONE===
16--EXPECT--
171
180
19Parameter #0 IS OPTIONAL
20===DONE===
21