mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
21 lines
474 B
Plaintext
21 lines
474 B
Plaintext
|
--TEST--
|
||
|
ReflectionParameter::__toString()
|
||
|
--CREDITS--
|
||
|
Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
function ReflectionParameterTest($test, $test2 = null) {
|
||
|
echo $test;
|
||
|
}
|
||
|
$reflect = new ReflectionFunction('ReflectionParameterTest');
|
||
|
$params = $reflect->getParameters();
|
||
|
foreach($params as $key => $value) {
|
||
|
echo $value->__toString() . "\n";
|
||
|
}
|
||
|
?>
|
||
|
==DONE==
|
||
|
--EXPECT--
|
||
|
Parameter #0 [ <required> $test ]
|
||
|
Parameter #1 [ <optional> $test2 = NULL ]
|
||
|
==DONE==
|