20 lines
435 B
Plaintext
20 lines
435 B
Plaintext
|
|
--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());
|
||
|
|
}
|
||
|
|
?>
|
||
|
|
--EXPECT--
|
||
|
|
int(0)
|
||
|
|
int(1)
|