summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionParameter_getPosition_basic.phpt
blob: c5df520c42021c362856127dacddcc8be259cd70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--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)