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