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