summaryrefslogtreecommitdiff
path: root/ext/reflection/tests/ReflectionMethod_006.phpt
blob: 4a8192b9ed8c480de2bb5841892949bcae809fb3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
--TEST--
ReflectionMethod methods - wrong num args
--CREDITS--
Robin Fernandes <robinf@php.net>
Steve Seear <stevseea@php.net>
--FILE--
<?php

var_dump(new ReflectionMethod());
var_dump(new ReflectionMethod('a', 'b', 'c'));

class C {
    public function f() {}
}

$rm = new ReflectionMethod('C', 'f');

var_dump($rm->isFinal(1));
var_dump($rm->isAbstract(1));
var_dump($rm->isPrivate(1));
var_dump($rm->isProtected(1));
var_dump($rm->isPublic(1));
var_dump($rm->isStatic(1));
var_dump($rm->isConstructor(1));
var_dump($rm->isDestructor(1));
var_dump($rm->getModifiers(1));
var_dump($rm->isInternal(1));
var_dump($rm->isUserDefined(1));
var_dump($rm->getFileName(1));
var_dump($rm->getStartLine(1));
var_dump($rm->getEndLine(1));
var_dump($rm->getStaticVariables(1));
var_dump($rm->getName(1));


?>
--EXPECTF--
Warning: ReflectionMethod::__construct() expects %s on line 3
object(ReflectionMethod)#%d (2) {
  ["name"]=>
  string(0) ""
  ["class"]=>
  string(0) ""
}

Warning: ReflectionMethod::__construct() expects %s on line 4
object(ReflectionMethod)#%d (2) {
  ["name"]=>
  string(0) ""
  ["class"]=>
  string(0) ""
}

Warning: Wrong parameter count for ReflectionMethod::isFinal() in %s on line 12
NULL

Warning: Wrong parameter count for ReflectionMethod::isAbstract() in %s on line 13
NULL

Warning: Wrong parameter count for ReflectionMethod::isPrivate() in %s on line 14
NULL

Warning: Wrong parameter count for ReflectionMethod::isProtected() in %s on line 15
NULL

Warning: Wrong parameter count for ReflectionMethod::isPublic() in %s on line 16
NULL

Warning: Wrong parameter count for ReflectionMethod::isStatic() in %s on line 17
NULL

Warning: Wrong parameter count for ReflectionMethod::isConstructor() in %s on line 18
NULL

Warning: Wrong parameter count for ReflectionMethod::isDestructor() in %s on line 19
NULL

Warning: Wrong parameter count for ReflectionMethod::getModifiers() in %s on line 20
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::isInternal() in %s on line 21
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::isUserDefined() in %s on line 22
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::getFileName() in %s on line 23
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::getStartLine() in %s on line 24
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::getEndLine() in %s on line 25
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::getStaticVariables() in %s on line 26
NULL

Warning: Wrong parameter count for ReflectionFunctionAbstract::getName() in %s on line 27
NULL