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