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