mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
a555cc0b3d
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
19 lines
461 B
PHP
19 lines
461 B
PHP
--TEST--
|
|
Bug #74416 Wrong reflection on DOMNode::cloneNode
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$rm = new ReflectionMethod(DOMNode::class, "cloneNode");
|
|
printf("%d\n%d\n", $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters());
|
|
foreach ($rm->getParameters() as $param) {
|
|
printf("Parameter #%d %s OPTIONAL\n", $param->getPosition(), $param->isOptional() ? "IS" : "IS NOT");
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
1
|
|
0
|
|
Parameter #0 IS OPTIONAL
|