1--TEST--
2Interface of the class mysqli_result - Reflection
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifemb.inc');
7require_once('skipifconnectfailure.inc');
8require_once('connect.inc');
9
10/*
11Let's not deal with cross-version issues in the EXPECTF section.
12Most of the things which we test are covered by mysqli_class_*_interface.phpt.
13Those tests go into the details and are aimed to be a development tool, no more.
14*/
15if (!$IS_MYSQLND)
16    die("skip Test has been written for mysqlnd only");
17?>
18--FILE--
19<?php
20    require_once('reflection_tools.inc');
21    $class = new ReflectionClass('mysqli_result');
22    inspectClass($class);
23    print "done!";
24?>
25--EXPECT--
26Inspecting class 'mysqli_result'
27isInternal: yes
28isUserDefined: no
29isInstantiable: yes
30isInterface: no
31isAbstract: no
32isFinal: no
33isIteratable: yes
34Modifiers: '0'
35Parent Class: ''
36Extension: 'mysqli'
37
38Inspecting method '__construct'
39isFinal: no
40isAbstract: no
41isPublic: yes
42isPrivate: no
43isProtected: no
44isStatic: no
45isConstructor: yes
46isDestructor: no
47isInternal: yes
48isUserDefined: no
49returnsReference: no
50Modifiers: 1
51Number of Parameters: 0
52Number of Required Parameters: 0
53
54Inspecting method '__construct'
55isFinal: no
56isAbstract: no
57isPublic: yes
58isPrivate: no
59isProtected: no
60isStatic: no
61isConstructor: yes
62isDestructor: no
63isInternal: yes
64isUserDefined: no
65returnsReference: no
66Modifiers: 1
67Number of Parameters: 0
68Number of Required Parameters: 0
69
70Inspecting method 'close'
71isFinal: no
72isAbstract: no
73isPublic: yes
74isPrivate: no
75isProtected: no
76isStatic: no
77isConstructor: no
78isDestructor: no
79isInternal: yes
80isUserDefined: no
81returnsReference: no
82Modifiers: 1
83Number of Parameters: 0
84Number of Required Parameters: 0
85
86Inspecting method 'data_seek'
87isFinal: no
88isAbstract: no
89isPublic: yes
90isPrivate: no
91isProtected: no
92isStatic: no
93isConstructor: no
94isDestructor: no
95isInternal: yes
96isUserDefined: no
97returnsReference: no
98Modifiers: 1
99Number of Parameters: 1
100Number of Required Parameters: 1
101
102Inspecting parameter 'offset' of method 'data_seek'
103isArray: no
104allowsNull: no
105isPassedByReference: no
106isOptional: no
107isDefaultValueAvailable: no
108
109Inspecting method 'fetch_all'
110isFinal: no
111isAbstract: no
112isPublic: yes
113isPrivate: no
114isProtected: no
115isStatic: no
116isConstructor: no
117isDestructor: no
118isInternal: yes
119isUserDefined: no
120returnsReference: no
121Modifiers: 1
122Number of Parameters: 1
123Number of Required Parameters: 0
124
125Inspecting parameter 'result_type' of method 'fetch_all'
126isArray: no
127allowsNull: no
128isPassedByReference: no
129isOptional: yes
130isDefaultValueAvailable: no
131
132Inspecting method 'fetch_array'
133isFinal: no
134isAbstract: no
135isPublic: yes
136isPrivate: no
137isProtected: no
138isStatic: no
139isConstructor: no
140isDestructor: no
141isInternal: yes
142isUserDefined: no
143returnsReference: no
144Modifiers: 1
145Number of Parameters: 1
146Number of Required Parameters: 0
147
148Inspecting parameter 'result_type' of method 'fetch_array'
149isArray: no
150allowsNull: no
151isPassedByReference: no
152isOptional: yes
153isDefaultValueAvailable: no
154
155Inspecting method 'fetch_assoc'
156isFinal: no
157isAbstract: no
158isPublic: yes
159isPrivate: no
160isProtected: no
161isStatic: no
162isConstructor: no
163isDestructor: no
164isInternal: yes
165isUserDefined: no
166returnsReference: no
167Modifiers: 1
168Number of Parameters: 0
169Number of Required Parameters: 0
170
171Inspecting method 'fetch_field'
172isFinal: no
173isAbstract: no
174isPublic: yes
175isPrivate: no
176isProtected: no
177isStatic: no
178isConstructor: no
179isDestructor: no
180isInternal: yes
181isUserDefined: no
182returnsReference: no
183Modifiers: 1
184Number of Parameters: 0
185Number of Required Parameters: 0
186
187Inspecting method 'fetch_field_direct'
188isFinal: no
189isAbstract: no
190isPublic: yes
191isPrivate: no
192isProtected: no
193isStatic: no
194isConstructor: no
195isDestructor: no
196isInternal: yes
197isUserDefined: no
198returnsReference: no
199Modifiers: 1
200Number of Parameters: 1
201Number of Required Parameters: 1
202
203Inspecting parameter 'field_nr' of method 'fetch_field_direct'
204isArray: no
205allowsNull: no
206isPassedByReference: no
207isOptional: no
208isDefaultValueAvailable: no
209
210Inspecting method 'fetch_fields'
211isFinal: no
212isAbstract: no
213isPublic: yes
214isPrivate: no
215isProtected: no
216isStatic: no
217isConstructor: no
218isDestructor: no
219isInternal: yes
220isUserDefined: no
221returnsReference: no
222Modifiers: 1
223Number of Parameters: 0
224Number of Required Parameters: 0
225
226Inspecting method 'fetch_object'
227isFinal: no
228isAbstract: no
229isPublic: yes
230isPrivate: no
231isProtected: no
232isStatic: no
233isConstructor: no
234isDestructor: no
235isInternal: yes
236isUserDefined: no
237returnsReference: no
238Modifiers: 1
239Number of Parameters: 2
240Number of Required Parameters: 0
241
242Inspecting parameter 'class_name' of method 'fetch_object'
243isArray: no
244allowsNull: no
245isPassedByReference: no
246isOptional: yes
247isDefaultValueAvailable: no
248
249Inspecting parameter 'params' of method 'fetch_object'
250isArray: yes
251allowsNull: no
252isPassedByReference: no
253isOptional: yes
254isDefaultValueAvailable: no
255
256Inspecting method 'fetch_row'
257isFinal: no
258isAbstract: no
259isPublic: yes
260isPrivate: no
261isProtected: no
262isStatic: no
263isConstructor: no
264isDestructor: no
265isInternal: yes
266isUserDefined: no
267returnsReference: no
268Modifiers: 1
269Number of Parameters: 0
270Number of Required Parameters: 0
271
272Inspecting method 'field_seek'
273isFinal: no
274isAbstract: no
275isPublic: yes
276isPrivate: no
277isProtected: no
278isStatic: no
279isConstructor: no
280isDestructor: no
281isInternal: yes
282isUserDefined: no
283returnsReference: no
284Modifiers: 1
285Number of Parameters: 1
286Number of Required Parameters: 1
287
288Inspecting parameter 'field_nr' of method 'field_seek'
289isArray: no
290allowsNull: no
291isPassedByReference: no
292isOptional: no
293isDefaultValueAvailable: no
294
295Inspecting method 'free'
296isFinal: no
297isAbstract: no
298isPublic: yes
299isPrivate: no
300isProtected: no
301isStatic: no
302isConstructor: no
303isDestructor: no
304isInternal: yes
305isUserDefined: no
306returnsReference: no
307Modifiers: 1
308Number of Parameters: 0
309Number of Required Parameters: 0
310
311Inspecting method 'free_result'
312isFinal: no
313isAbstract: no
314isPublic: yes
315isPrivate: no
316isProtected: no
317isStatic: no
318isConstructor: no
319isDestructor: no
320isInternal: yes
321isUserDefined: no
322returnsReference: no
323Modifiers: 1
324Number of Parameters: 0
325Number of Required Parameters: 0
326
327Inspecting property 'current_field'
328isPublic: yes
329isPrivate: no
330isProtected: no
331isStatic: no
332isDefault: yes
333Modifiers: 1
334
335Inspecting property 'field_count'
336isPublic: yes
337isPrivate: no
338isProtected: no
339isStatic: no
340isDefault: yes
341Modifiers: 1
342
343Inspecting property 'lengths'
344isPublic: yes
345isPrivate: no
346isProtected: no
347isStatic: no
348isDefault: yes
349Modifiers: 1
350
351Inspecting property 'num_rows'
352isPublic: yes
353isPrivate: no
354isProtected: no
355isStatic: no
356isDefault: yes
357Modifiers: 1
358
359Inspecting property 'type'
360isPublic: yes
361isPrivate: no
362isProtected: no
363isStatic: no
364isDefault: yes
365Modifiers: 1
366Default property 'current_field'
367Default property 'field_count'
368Default property 'lengths'
369Default property 'num_rows'
370Default property 'type'
371done!
372