1--TEST--
2ReflectionParameter::__construct(): Invalid method as constructor
3--FILE--
4<?php
5
6// Invalid class name
7try {
8	new ReflectionParameter (array ('A', 'b'), 0);
9} catch (ReflectionException $e) { echo $e->getMessage ()."\n"; }
10
11// Invalid class method
12try {
13	new ReflectionParameter (array ('C', 'b'), 0);
14} catch (ReflectionException $e) { echo $e->getMessage ()."\n"; }
15
16// Invalid object method
17try {
18	new ReflectionParameter (array (new C, 'b'), 0);
19} catch (ReflectionException $e) { echo $e->getMessage ()."\n"; }
20
21echo "Done.\n";
22
23class C {
24}
25
26?>
27--EXPECTF--
28Class A does not exist
29Method C::b() does not exist
30Method C::b() does not exist
31Done.
32