1--TEST--
2ReflectionClass::__toString()
3--CREDITS--
4Robin Fernandes <robinf@php.net>
5Steve Seear <stevseea@php.net>
6--FILE--
7<?php
8$rc = new ReflectionClass("ReflectionClass");
9echo $rc;
10?>
11--EXPECTF--
12Class [ <internal:Reflection> class ReflectionClass implements Reflector ] {
13
14  - Constants [3] {
15    Constant [ integer IS_IMPLICIT_ABSTRACT ] { 16 }
16    Constant [ integer IS_EXPLICIT_ABSTRACT ] { 32 }
17    Constant [ integer IS_FINAL ] { 64 }
18  }
19
20  - Static properties [0] {
21  }
22
23  - Static methods [1] {
24    Method [ <internal:Reflection> static public method export ] {
25
26      - Parameters [2] {
27        Parameter #0 [ <required> $argument ]
28        Parameter #1 [ <optional> $return ]
29      }
30    }
31  }
32
33  - Properties [1] {
34    Property [ <default> public $name ]
35  }
36
37  - Methods [49] {
38    Method [ <internal:Reflection> final private method __clone ] {
39
40      - Parameters [0] {
41      }
42    }
43
44    Method [ <internal:Reflection, ctor> public method __construct ] {
45
46      - Parameters [1] {
47        Parameter #0 [ <required> $argument ]
48      }
49    }
50
51    Method [ <internal:Reflection> public method __toString ] {
52
53      - Parameters [0] {
54      }
55    }
56
57    Method [ <internal:Reflection> public method getName ] {
58
59      - Parameters [0] {
60      }
61    }
62
63    Method [ <internal:Reflection> public method isInternal ] {
64
65      - Parameters [0] {
66      }
67    }
68
69    Method [ <internal:Reflection> public method isUserDefined ] {
70
71      - Parameters [0] {
72      }
73    }
74
75    Method [ <internal:Reflection> public method isInstantiable ] {
76
77      - Parameters [0] {
78      }
79    }
80
81    Method [ <internal:Reflection> public method isCloneable ] {
82
83      - Parameters [0] {
84      }
85    }
86
87    Method [ <internal:Reflection> public method getFileName ] {
88
89      - Parameters [0] {
90      }
91    }
92
93    Method [ <internal:Reflection> public method getStartLine ] {
94
95      - Parameters [0] {
96      }
97    }
98
99    Method [ <internal:Reflection> public method getEndLine ] {
100
101      - Parameters [0] {
102      }
103    }
104
105    Method [ <internal:Reflection> public method getDocComment ] {
106
107      - Parameters [0] {
108      }
109    }
110
111    Method [ <internal:Reflection> public method getConstructor ] {
112
113      - Parameters [0] {
114      }
115    }
116
117    Method [ <internal:Reflection> public method hasMethod ] {
118
119      - Parameters [1] {
120        Parameter #0 [ <required> $name ]
121      }
122    }
123
124    Method [ <internal:Reflection> public method getMethod ] {
125
126      - Parameters [1] {
127        Parameter #0 [ <required> $name ]
128      }
129    }
130
131    Method [ <internal:Reflection> public method getMethods ] {
132
133      - Parameters [1] {
134        Parameter #0 [ <optional> $filter ]
135      }
136    }
137
138    Method [ <internal:Reflection> public method hasProperty ] {
139
140      - Parameters [1] {
141        Parameter #0 [ <required> $name ]
142      }
143    }
144
145    Method [ <internal:Reflection> public method getProperty ] {
146
147      - Parameters [1] {
148        Parameter #0 [ <required> $name ]
149      }
150    }
151
152    Method [ <internal:Reflection> public method getProperties ] {
153
154      - Parameters [1] {
155        Parameter #0 [ <optional> $filter ]
156      }
157    }
158
159    Method [ <internal:Reflection> public method hasConstant ] {
160
161      - Parameters [1] {
162        Parameter #0 [ <required> $name ]
163      }
164    }
165
166    Method [ <internal:Reflection> public method getConstants ] {
167
168      - Parameters [0] {
169      }
170    }
171
172    Method [ <internal:Reflection> public method getConstant ] {
173
174      - Parameters [1] {
175        Parameter #0 [ <required> $name ]
176      }
177    }
178
179    Method [ <internal:Reflection> public method getInterfaces ] {
180
181      - Parameters [0] {
182      }
183    }
184
185    Method [ <internal:Reflection> public method getInterfaceNames ] {
186
187      - Parameters [0] {
188      }
189    }
190
191    Method [ <internal:Reflection> public method isInterface ] {
192
193      - Parameters [0] {
194      }
195    }
196
197    Method [ <internal:Reflection> public method getTraits ] {
198
199      - Parameters [0] {
200      }
201    }
202
203    Method [ <internal:Reflection> public method getTraitNames ] {
204
205      - Parameters [0] {
206      }
207    }
208
209    Method [ <internal:Reflection> public method getTraitAliases ] {
210
211      - Parameters [0] {
212      }
213    }
214
215    Method [ <internal:Reflection> public method isTrait ] {
216
217      - Parameters [0] {
218      }
219    }
220
221    Method [ <internal:Reflection> public method isAbstract ] {
222
223      - Parameters [0] {
224      }
225    }
226
227    Method [ <internal:Reflection> public method isFinal ] {
228
229      - Parameters [0] {
230      }
231    }
232
233    Method [ <internal:Reflection> public method getModifiers ] {
234
235      - Parameters [0] {
236      }
237    }
238
239    Method [ <internal:Reflection> public method isInstance ] {
240
241      - Parameters [1] {
242        Parameter #0 [ <required> $object ]
243      }
244    }
245
246    Method [ <internal:Reflection> public method newInstance ] {
247
248      - Parameters [1] {
249        Parameter #0 [ <required> $args ]
250      }
251    }
252
253    Method [ <internal:Reflection> public method newInstanceWithoutConstructor ] {
254
255      - Parameters [0] {
256      }
257    }
258
259    Method [ <internal:Reflection> public method newInstanceArgs ] {
260
261      - Parameters [1] {
262        Parameter #0 [ <optional> array $args ]
263      }
264    }
265
266    Method [ <internal:Reflection> public method getParentClass ] {
267
268      - Parameters [0] {
269      }
270    }
271
272    Method [ <internal:Reflection> public method isSubclassOf ] {
273
274      - Parameters [1] {
275        Parameter #0 [ <required> $class ]
276      }
277    }
278
279    Method [ <internal:Reflection> public method getStaticProperties ] {
280
281      - Parameters [0] {
282      }
283    }
284
285    Method [ <internal:Reflection> public method getStaticPropertyValue ] {
286
287      - Parameters [2] {
288        Parameter #0 [ <required> $name ]
289        Parameter #1 [ <optional> $default ]
290      }
291    }
292
293    Method [ <internal:Reflection> public method setStaticPropertyValue ] {
294
295      - Parameters [2] {
296        Parameter #0 [ <required> $name ]
297        Parameter #1 [ <required> $value ]
298      }
299    }
300
301    Method [ <internal:Reflection> public method getDefaultProperties ] {
302
303      - Parameters [0] {
304      }
305    }
306
307    Method [ <internal:Reflection> public method isIterateable ] {
308
309      - Parameters [0] {
310      }
311    }
312
313    Method [ <internal:Reflection> public method implementsInterface ] {
314
315      - Parameters [1] {
316        Parameter #0 [ <required> $interface ]
317      }
318    }
319
320    Method [ <internal:Reflection> public method getExtension ] {
321
322      - Parameters [0] {
323      }
324    }
325
326    Method [ <internal:Reflection> public method getExtensionName ] {
327
328      - Parameters [0] {
329      }
330    }
331
332    Method [ <internal:Reflection> public method inNamespace ] {
333
334      - Parameters [0] {
335      }
336    }
337
338    Method [ <internal:Reflection> public method getNamespaceName ] {
339
340      - Parameters [0] {
341      }
342    }
343
344    Method [ <internal:Reflection> public method getShortName ] {
345
346      - Parameters [0] {
347      }
348    }
349  }
350}
351