xref: /PHP-8.0/ext/dom/tests/bug74416.phpt (revision a555cc0b)
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--EXPECT--
161
170
18Parameter #0 IS OPTIONAL
19