xref: /PHP-8.3/ext/dom/tests/bug74416.phpt (revision bd9f4fa6)
1--TEST--
2Bug #74416 Wrong reflection on DOMNode::cloneNode
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7$rm = new ReflectionMethod(DOMNode::class, "cloneNode");
8printf("%d\n%d\n", $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters());
9foreach ($rm->getParameters() as $param) {
10    printf("Parameter #%d %s OPTIONAL\n", $param->getPosition(), $param->isOptional() ? "IS" : "IS NOT");
11}
12?>
13--EXPECT--
141
150
16Parameter #0 IS OPTIONAL
17