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 ] { 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 [50] {
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 getConstant ] {
179
180      - Parameters [1] {
181        Parameter #0 [ <required> $name ]
182      }
183    }
184
185    Method [ <internal:Reflection> public method getInterfaces ] {
186
187      - Parameters [0] {
188      }
189    }
190
191    Method [ <internal:Reflection> public method getInterfaceNames ] {
192
193      - Parameters [0] {
194      }
195    }
196
197    Method [ <internal:Reflection> public method isInterface ] {
198
199      - Parameters [0] {
200      }
201    }
202
203    Method [ <internal:Reflection> public method getTraits ] {
204
205      - Parameters [0] {
206      }
207    }
208
209    Method [ <internal:Reflection> public method getTraitNames ] {
210
211      - Parameters [0] {
212      }
213    }
214
215    Method [ <internal:Reflection> public method getTraitAliases ] {
216
217      - Parameters [0] {
218      }
219    }
220
221    Method [ <internal:Reflection> public method isTrait ] {
222
223      - Parameters [0] {
224      }
225    }
226
227    Method [ <internal:Reflection> public method isAbstract ] {
228
229      - Parameters [0] {
230      }
231    }
232
233    Method [ <internal:Reflection> public method isFinal ] {
234
235      - Parameters [0] {
236      }
237    }
238
239    Method [ <internal:Reflection> public method getModifiers ] {
240
241      - Parameters [0] {
242      }
243    }
244
245    Method [ <internal:Reflection> public method isInstance ] {
246
247      - Parameters [1] {
248        Parameter #0 [ <required> $object ]
249      }
250    }
251
252    Method [ <internal:Reflection> public method newInstance ] {
253
254      - Parameters [1] {
255        Parameter #0 [ <required> $args ]
256      }
257    }
258
259    Method [ <internal:Reflection> public method newInstanceWithoutConstructor ] {
260
261      - Parameters [0] {
262      }
263    }
264
265    Method [ <internal:Reflection> public method newInstanceArgs ] {
266
267      - Parameters [1] {
268        Parameter #0 [ <optional> array $args ]
269      }
270    }
271
272    Method [ <internal:Reflection> public method getParentClass ] {
273
274      - Parameters [0] {
275      }
276    }
277
278    Method [ <internal:Reflection> public method isSubclassOf ] {
279
280      - Parameters [1] {
281        Parameter #0 [ <required> $class ]
282      }
283    }
284
285    Method [ <internal:Reflection> public method getStaticProperties ] {
286
287      - Parameters [0] {
288      }
289    }
290
291    Method [ <internal:Reflection> public method getStaticPropertyValue ] {
292
293      - Parameters [2] {
294        Parameter #0 [ <required> $name ]
295        Parameter #1 [ <optional> $default ]
296      }
297    }
298
299    Method [ <internal:Reflection> public method setStaticPropertyValue ] {
300
301      - Parameters [2] {
302        Parameter #0 [ <required> $name ]
303        Parameter #1 [ <required> $value ]
304      }
305    }
306
307    Method [ <internal:Reflection> public method getDefaultProperties ] {
308
309      - Parameters [0] {
310      }
311    }
312
313    Method [ <internal:Reflection> public method isIterateable ] {
314
315      - Parameters [0] {
316      }
317    }
318
319    Method [ <internal:Reflection> public method implementsInterface ] {
320
321      - Parameters [1] {
322        Parameter #0 [ <required> $interface ]
323      }
324    }
325
326    Method [ <internal:Reflection> public method getExtension ] {
327
328      - Parameters [0] {
329      }
330    }
331
332    Method [ <internal:Reflection> public method getExtensionName ] {
333
334      - Parameters [0] {
335      }
336    }
337
338    Method [ <internal:Reflection> public method inNamespace ] {
339
340      - Parameters [0] {
341      }
342    }
343
344    Method [ <internal:Reflection> public method getNamespaceName ] {
345
346      - Parameters [0] {
347      }
348    }
349
350    Method [ <internal:Reflection> public method getShortName ] {
351
352      - Parameters [0] {
353      }
354    }
355  }
356}
357