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 [ public integer IS_IMPLICIT_ABSTRACT ] { 16 }
16    Constant [ public integer IS_EXPLICIT_ABSTRACT ] { 32 }
17    Constant [ public integer IS_FINAL ] { 4 }
18  }
19
20  - Static properties [0] {
21  }
22
23  - Static methods [1] {
24    Method [ <internal:Reflection, prototype Reflector> 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 [53] {
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, prototype Reflector> 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 isAnonymous ] {
76
77      - Parameters [0] {
78      }
79    }
80
81    Method [ <internal:Reflection> public method isInstantiable ] {
82
83      - Parameters [0] {
84      }
85    }
86
87    Method [ <internal:Reflection> public method isCloneable ] {
88
89      - Parameters [0] {
90      }
91    }
92
93    Method [ <internal:Reflection> public method getFileName ] {
94
95      - Parameters [0] {
96      }
97    }
98
99    Method [ <internal:Reflection> public method getStartLine ] {
100
101      - Parameters [0] {
102      }
103    }
104
105    Method [ <internal:Reflection> public method getEndLine ] {
106
107      - Parameters [0] {
108      }
109    }
110
111    Method [ <internal:Reflection> public method getDocComment ] {
112
113      - Parameters [0] {
114      }
115    }
116
117    Method [ <internal:Reflection> public method getConstructor ] {
118
119      - Parameters [0] {
120      }
121    }
122
123    Method [ <internal:Reflection> public method hasMethod ] {
124
125      - Parameters [1] {
126        Parameter #0 [ <required> $name ]
127      }
128    }
129
130    Method [ <internal:Reflection> public method getMethod ] {
131
132      - Parameters [1] {
133        Parameter #0 [ <required> $name ]
134      }
135    }
136
137    Method [ <internal:Reflection> public method getMethods ] {
138
139      - Parameters [1] {
140        Parameter #0 [ <optional> $filter ]
141      }
142    }
143
144    Method [ <internal:Reflection> public method hasProperty ] {
145
146      - Parameters [1] {
147        Parameter #0 [ <required> $name ]
148      }
149    }
150
151    Method [ <internal:Reflection> public method getProperty ] {
152
153      - Parameters [1] {
154        Parameter #0 [ <required> $name ]
155      }
156    }
157
158    Method [ <internal:Reflection> public method getProperties ] {
159
160      - Parameters [1] {
161        Parameter #0 [ <optional> $filter ]
162      }
163    }
164
165    Method [ <internal:Reflection> public method hasConstant ] {
166
167      - Parameters [1] {
168        Parameter #0 [ <required> $name ]
169      }
170    }
171
172    Method [ <internal:Reflection> public method getConstants ] {
173
174      - Parameters [0] {
175      }
176    }
177
178    Method [ <internal:Reflection> public method getReflectionConstants ] {
179
180      - Parameters [0] {
181      }
182    }
183
184    Method [ <internal:Reflection> public method getConstant ] {
185
186      - Parameters [1] {
187        Parameter #0 [ <required> $name ]
188      }
189    }
190
191    Method [ <internal:Reflection> public method getReflectionConstant ] {
192
193      - Parameters [1] {
194        Parameter #0 [ <required> $name ]
195      }
196    }
197
198    Method [ <internal:Reflection> public method getInterfaces ] {
199
200      - Parameters [0] {
201      }
202    }
203
204    Method [ <internal:Reflection> public method getInterfaceNames ] {
205
206      - Parameters [0] {
207      }
208    }
209
210    Method [ <internal:Reflection> public method isInterface ] {
211
212      - Parameters [0] {
213      }
214    }
215
216    Method [ <internal:Reflection> public method getTraits ] {
217
218      - Parameters [0] {
219      }
220    }
221
222    Method [ <internal:Reflection> public method getTraitNames ] {
223
224      - Parameters [0] {
225      }
226    }
227
228    Method [ <internal:Reflection> public method getTraitAliases ] {
229
230      - Parameters [0] {
231      }
232    }
233
234    Method [ <internal:Reflection> public method isTrait ] {
235
236      - Parameters [0] {
237      }
238    }
239
240    Method [ <internal:Reflection> public method isAbstract ] {
241
242      - Parameters [0] {
243      }
244    }
245
246    Method [ <internal:Reflection> public method isFinal ] {
247
248      - Parameters [0] {
249      }
250    }
251
252    Method [ <internal:Reflection> public method getModifiers ] {
253
254      - Parameters [0] {
255      }
256    }
257
258    Method [ <internal:Reflection> public method isInstance ] {
259
260      - Parameters [1] {
261        Parameter #0 [ <required> $object ]
262      }
263    }
264
265    Method [ <internal:Reflection> public method newInstance ] {
266
267      - Parameters [1] {
268        Parameter #0 [ <required> $args ]
269      }
270    }
271
272    Method [ <internal:Reflection> public method newInstanceWithoutConstructor ] {
273
274      - Parameters [0] {
275      }
276    }
277
278    Method [ <internal:Reflection> public method newInstanceArgs ] {
279
280      - Parameters [1] {
281        Parameter #0 [ <optional> array $args ]
282      }
283    }
284
285    Method [ <internal:Reflection> public method getParentClass ] {
286
287      - Parameters [0] {
288      }
289    }
290
291    Method [ <internal:Reflection> public method isSubclassOf ] {
292
293      - Parameters [1] {
294        Parameter #0 [ <required> $class ]
295      }
296    }
297
298    Method [ <internal:Reflection> public method getStaticProperties ] {
299
300      - Parameters [0] {
301      }
302    }
303
304    Method [ <internal:Reflection> public method getStaticPropertyValue ] {
305
306      - Parameters [2] {
307        Parameter #0 [ <required> $name ]
308        Parameter #1 [ <optional> $default ]
309      }
310    }
311
312    Method [ <internal:Reflection> public method setStaticPropertyValue ] {
313
314      - Parameters [2] {
315        Parameter #0 [ <required> $name ]
316        Parameter #1 [ <required> $value ]
317      }
318    }
319
320    Method [ <internal:Reflection> public method getDefaultProperties ] {
321
322      - Parameters [0] {
323      }
324    }
325
326    Method [ <internal:Reflection> public method isIterable ] {
327
328      - Parameters [0] {
329      }
330    }
331
332    Method [ <internal:Reflection> public method isIterateable ] {
333
334      - Parameters [0] {
335      }
336    }
337
338    Method [ <internal:Reflection> public method implementsInterface ] {
339
340      - Parameters [1] {
341        Parameter #0 [ <required> $interface ]
342      }
343    }
344
345    Method [ <internal:Reflection> public method getExtension ] {
346
347      - Parameters [0] {
348      }
349    }
350
351    Method [ <internal:Reflection> public method getExtensionName ] {
352
353      - Parameters [0] {
354      }
355    }
356
357    Method [ <internal:Reflection> public method inNamespace ] {
358
359      - Parameters [0] {
360      }
361    }
362
363    Method [ <internal:Reflection> public method getNamespaceName ] {
364
365      - Parameters [0] {
366      }
367    }
368
369    Method [ <internal:Reflection> public method getShortName ] {
370
371      - Parameters [0] {
372      }
373    }
374  }
375}
376