Annotation of embedaddon/php/ext/mysqli/tests/mysqli_class_mysqli_result_reflection.phpt, revision 1.1.1.1
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
38: isIteratable: no
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
237: Number of Parameters: 0
238: Number of Required Parameters: 0
239:
240: Inspecting method 'fetch_row'
241: isFinal: no
242: isAbstract: no
243: isPublic: yes
244: isPrivate: no
245: isProtected: no
246: isStatic: no
247: isConstructor: no
248: isDestructor: no
249: isInternal: yes
250: isUserDefined: no
251: returnsReference: no
252: Modifiers: 256
253: Number of Parameters: 0
254: Number of Required Parameters: 0
255:
256: Inspecting method 'field_seek'
257: isFinal: no
258: isAbstract: no
259: isPublic: yes
260: isPrivate: no
261: isProtected: no
262: isStatic: no
263: isConstructor: no
264: isDestructor: no
265: isInternal: yes
266: isUserDefined: no
267: returnsReference: no
268: Modifiers: 256
269: Number of Parameters: 1
270: Number of Required Parameters: 1
271:
272: Inspecting parameter 'field_nr' of method 'field_seek'
273: isArray: no
274: allowsNull: no
275: isPassedByReference: no
276: isOptional: no
277: isDefaultValueAvailable: no
278:
279: Inspecting method 'free'
280: isFinal: no
281: isAbstract: no
282: isPublic: yes
283: isPrivate: no
284: isProtected: no
285: isStatic: no
286: isConstructor: no
287: isDestructor: no
288: isInternal: yes
289: isUserDefined: no
290: returnsReference: no
291: Modifiers: 256
292: Number of Parameters: 0
293: Number of Required Parameters: 0
294:
295: Inspecting method 'free_result'
296: isFinal: no
297: isAbstract: no
298: isPublic: yes
299: isPrivate: no
300: isProtected: no
301: isStatic: no
302: isConstructor: no
303: isDestructor: no
304: isInternal: yes
305: isUserDefined: no
306: returnsReference: no
307: Modifiers: 256
308: Number of Parameters: 0
309: Number of Required Parameters: 0
310:
311: Inspecting property 'current_field'
312: isPublic: yes
313: isPrivate: no
314: isProtected: no
315: isStatic: no
316: isDefault: yes
317: Modifiers: 256
318:
319: Inspecting property 'field_count'
320: isPublic: yes
321: isPrivate: no
322: isProtected: no
323: isStatic: no
324: isDefault: yes
325: Modifiers: 256
326:
327: Inspecting property 'lengths'
328: isPublic: yes
329: isPrivate: no
330: isProtected: no
331: isStatic: no
332: isDefault: yes
333: Modifiers: 256
334:
335: Inspecting property 'num_rows'
336: isPublic: yes
337: isPrivate: no
338: isProtected: no
339: isStatic: no
340: isDefault: yes
341: Modifiers: 256
342:
343: Inspecting property 'type'
344: isPublic: yes
345: isPrivate: no
346: isProtected: no
347: isStatic: no
348: isDefault: yes
349: Modifiers: 256
350: Default property 'current_field'
351: Default property 'field_count'
352: Default property 'lengths'
353: Default property 'num_rows'
354: Default property 'type'
355: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>