Annotation of embedaddon/php/ext/mysqli/tests/mysqli_class_mysqli_warning_reflection.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Interface of the class mysqli_stmt - Reflection
3: --SKIPIF--
4: <?php
5: require_once('skipif.inc');
6: require_once('skipifemb.inc');
7: require_once('connect.inc');
8:
9: if (($tmp = substr(PHP_VERSION, 0, strpos(PHP_VERSION, '.'))) && ($tmp < 5))
10: die("skip Reflection not available before PHP 5 (found PHP $tmp)");
11:
12: /*
13: Let's not deal with cross-version issues in the EXPECTF/UEXPECTF.
14: Most of the things which we test are covered by mysqli_class_*_interface.phpt.
15: Those tests go into the details and are aimed to be a development tool, no more.
16: */
17: if (!$IS_MYSQLND)
18: die("skip Test has been written for the latest version of mysqlnd only");
19: if ($MYSQLND_VERSION < 50004)
20: die("skip Test requires mysqlnd Revision 5.0.4 or newer");
21: ?>
22: --FILE--
23: <?php
24: require_once('reflection_tools.inc');
25: $class = new ReflectionClass('mysqli_warning');
26: inspectClass($class);
27: print "done!\n";
28: ?>
29: --EXPECTF--
30: Inspecting class 'mysqli_warning'
31: isInternal: yes
32: isUserDefined: no
33: isInstantiable: no
34: isInterface: no
35: isAbstract: no
36: isFinal: yes
37: isIteratable: no
38: Modifiers: '%d'
39: Parent Class: ''
40: Extension: 'mysqli'
41:
42: Inspecting method '__construct'
43: isFinal: no
44: isAbstract: no
45: isPublic: no
46: isPrivate: no
47: isProtected: yes
48: isStatic: no
49: isConstructor: yes
50: isDestructor: no
51: isInternal: yes
52: isUserDefined: no
53: returnsReference: no
54: Modifiers: %d
55: Number of Parameters: 0
56: Number of Required Parameters: 0
57:
58: Inspecting method '__construct'
59: isFinal: no
60: isAbstract: no
61: isPublic: no
62: isPrivate: no
63: isProtected: yes
64: isStatic: no
65: isConstructor: yes
66: isDestructor: no
67: isInternal: yes
68: isUserDefined: no
69: returnsReference: no
70: Modifiers: %d
71: Number of Parameters: 0
72: Number of Required Parameters: 0
73:
74: Inspecting method 'next'
75: isFinal: no
76: isAbstract: no
77: isPublic: yes
78: isPrivate: no
79: isProtected: no
80: isStatic: no
81: isConstructor: no
82: isDestructor: no
83: isInternal: yes
84: isUserDefined: no
85: returnsReference: no
86: Modifiers: %d
87: Number of Parameters: 0
88: Number of Required Parameters: 0
89:
90: Inspecting property 'errno'
91: isPublic: yes
92: isPrivate: no
93: isProtected: no
94: isStatic: no
95: isDefault: yes
96: Modifiers: 256
97:
98: Inspecting property 'message'
99: isPublic: yes
100: isPrivate: no
101: isProtected: no
102: isStatic: no
103: isDefault: yes
104: Modifiers: 256
105:
106: Inspecting property 'sqlstate'
107: isPublic: yes
108: isPrivate: no
109: isProtected: no
110: isStatic: no
111: isDefault: yes
112: Modifiers: 256
113: Default property 'errno'
114: Default property 'message'
115: Default property 'sqlstate'
116: done!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>