1--TEST--
2ReflectionParameter::getDeclaringFunction()
3--CREDITS--
4Stefan Koopmanschap <stefan@stefankoopmanschap.nl>
5#testfest roosendaal on 2008-05-10
6--FILE--
7<?php
8function ReflectionParameterTest($test, $test2 = null) {
9	echo $test;
10}
11$reflect = new ReflectionFunction('ReflectionParameterTest');
12$params = $reflect->getParameters();
13foreach($params as $key => $value) {
14	echo $value->getDeclaringFunction() . "\n";
15}
16?>
17==DONE==
18--EXPECTF--
19Function [ <user> function ReflectionParameterTest ] {
20  @@ %s.php %d - %d
21
22  - Parameters [2] {
23    Parameter #0 [ <required> $test ]
24    Parameter #1 [ <optional> $test2 = NULL ]
25  }
26}
27
28Function [ <user> function ReflectionParameterTest ] {
29  @@ %s.php %d - %d
30
31  - Parameters [2] {
32    Parameter #0 [ <required> $test ]
33    Parameter #1 [ <optional> $test2 = NULL ]
34  }
35}
36
37==DONE==
38