mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
19 lines
484 B
PHP
19 lines
484 B
PHP
--TEST--
|
|
ReflectionParameter::export()
|
|
--CREDITS--
|
|
Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
|
|
--FILE--
|
|
<?php
|
|
function ReflectionParameterTest($test, $test2 = null) {
|
|
echo $test;
|
|
}
|
|
$reflect = new ReflectionFunction('ReflectionParameterTest');
|
|
foreach($reflect->getParameters() as $key => $value) {
|
|
echo ReflectionParameter::export('ReflectionParameterTest', $key);
|
|
}
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
Parameter #0 [ <required> $test ]
|
|
Parameter #1 [ <optional> $test2 = NULL ]
|
|
==DONE==
|