1--TEST--
2ReflectionMethod methods - wrong num args
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8
9var_dump(new ReflectionMethod());
10var_dump(new ReflectionMethod('a', 'b', 'c'));
11
12class C {
13    public function f() {}
14}
15
16$rm = new ReflectionMethod('C', 'f');
17
18var_dump($rm->isFinal(1));
19var_dump($rm->isAbstract(1));
20var_dump($rm->isPrivate(1));
21var_dump($rm->isProtected(1));
22var_dump($rm->isPublic(1));
23var_dump($rm->isStatic(1));
24var_dump($rm->isConstructor(1));
25var_dump($rm->isDestructor(1));
26var_dump($rm->getModifiers(1));
27var_dump($rm->isInternal(1));
28var_dump($rm->isUserDefined(1));
29var_dump($rm->getFileName(1));
30var_dump($rm->getStartLine(1));
31var_dump($rm->getEndLine(1));
32var_dump($rm->getStaticVariables(1));
33var_dump($rm->getName(1));
34
35
36?>
37--EXPECTF--
38Warning: ReflectionMethod::__construct() expects exactly 1 parameter, 0 given in %s on line %d
39object(ReflectionMethod)#%d (2) {
40  ["name"]=>
41  string(0) ""
42  ["class"]=>
43  string(0) ""
44}
45
46Warning: ReflectionMethod::__construct() expects exactly 1 parameter, 3 given in %s on line %d
47object(ReflectionMethod)#%d (2) {
48  ["name"]=>
49  string(0) ""
50  ["class"]=>
51  string(0) ""
52}
53
54Warning: ReflectionMethod::isFinal() expects exactly 0 parameters, 1 given in %s on line %d
55NULL
56
57Warning: ReflectionMethod::isAbstract() expects exactly 0 parameters, 1 given in %s on line %d
58NULL
59
60Warning: ReflectionMethod::isPrivate() expects exactly 0 parameters, 1 given in %s on line %d
61NULL
62
63Warning: ReflectionMethod::isProtected() expects exactly 0 parameters, 1 given in %s on line %d
64NULL
65
66Warning: ReflectionMethod::isPublic() expects exactly 0 parameters, 1 given in %s on line %d
67NULL
68
69Warning: ReflectionMethod::isStatic() expects exactly 0 parameters, 1 given in %s on line %d
70NULL
71
72Warning: ReflectionMethod::isConstructor() expects exactly 0 parameters, 1 given in %s on line %d
73NULL
74
75Warning: ReflectionMethod::isDestructor() expects exactly 0 parameters, 1 given in %s on line %d
76NULL
77
78Warning: ReflectionMethod::getModifiers() expects exactly 0 parameters, 1 given in %s on line %d
79NULL
80
81Warning: ReflectionFunctionAbstract::isInternal() expects exactly 0 parameters, 1 given in %s on line %d
82NULL
83
84Warning: ReflectionFunctionAbstract::isUserDefined() expects exactly 0 parameters, 1 given in %s on line %d
85NULL
86
87Warning: ReflectionFunctionAbstract::getFileName() expects exactly 0 parameters, 1 given in %s on line %d
88NULL
89
90Warning: ReflectionFunctionAbstract::getStartLine() expects exactly 0 parameters, 1 given in %s on line %d
91NULL
92
93Warning: ReflectionFunctionAbstract::getEndLine() expects exactly 0 parameters, 1 given in %s on line %d
94NULL
95
96Warning: ReflectionFunctionAbstract::getStaticVariables() expects exactly 0 parameters, 1 given in %s on line %d
97NULL
98
99Warning: ReflectionFunctionAbstract::getName() expects exactly 0 parameters, 1 given in %s on line %d
100NULL
101