blob: 2807bdf66dfd348c0520cac0badbaf5fbe7759e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--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==
|