php-src/ext/reflection/tests/ReflectionParameter_getDeclaringFunction_basic.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

35 lines
812 B
PHP

--TEST--
ReflectionParameter::getDeclaringFunction()
--CREDITS--
Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
#testfest roosendaal on 2008-05-10
--FILE--
<?php
function ReflectionParameterTest($test, $test2 = null) {
echo $test;
}
$reflect = new ReflectionFunction('ReflectionParameterTest');
$params = $reflect->getParameters();
foreach($params as $key => $value) {
echo $value->getDeclaringFunction() . "\n";
}
?>
--EXPECTF--
Function [ <user> function ReflectionParameterTest ] {
@@ %s.php %d - %d
- Parameters [2] {
Parameter #0 [ <required> $test ]
Parameter #1 [ <optional> $test2 = NULL ]
}
}
Function [ <user> function ReflectionParameterTest ] {
@@ %s.php %d - %d
- Parameters [2] {
Parameter #0 [ <required> $test ]
Parameter #1 [ <optional> $test2 = NULL ]
}
}