mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +08:00
22 lines
447 B
PHP
22 lines
447 B
PHP
--TEST--
|
|
ReflectionParameter::getPosition()
|
|
--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) {
|
|
var_dump($value->getPosition());
|
|
}
|
|
?>
|
|
==DONE==
|
|
--EXPECT--
|
|
int(0)
|
|
int(1)
|
|
==DONE==
|