xref: /PHP-7.4/ext/oci8/tests/reflection2.phpt (revision af4a8e78)
1--TEST--
2Test OCI8 LOB & Collection Class Reflection
3--SKIPIF--
4<?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?>
5--FILE--
6<?php
7
8reflection::export(new reflectionclass('OCI-Lob'));
9reflection::export(new reflectionclass('OCI-Collection'));
10
11?>
12===DONE===
13<?php exit(0); ?>
14--EXPECTF--
15Class [ <internal:oci8> class OCI-Lob ] {
16
17  - Constants [0] {
18  }
19
20  - Static properties [0] {
21  }
22
23  - Static methods [0] {
24  }
25
26  - Properties [0] {
27  }
28
29  - Methods [22] {
30    Method [ <internal%s> public method load ] {
31
32      - Parameters [0] {
33      }
34    }
35
36    Method [ <internal%s> public method tell ] {
37
38      - Parameters [0] {
39      }
40    }
41
42    Method [ <internal%s> public method truncate ] {
43
44      - Parameters [1] {
45        Parameter #0 [ <optional> $length ]
46      }
47    }
48
49    Method [ <internal%s> public method erase ] {
50
51      - Parameters [2] {
52        Parameter #0 [ <optional> $offset ]
53        Parameter #1 [ <optional> $length ]
54      }
55    }
56
57    Method [ <internal%s> public method flush ] {
58
59      - Parameters [1] {
60        Parameter #0 [ <optional> $flag ]
61      }
62    }
63
64    Method [ <internal%s> public method setbuffering ] {
65
66      - Parameters [1] {
67        Parameter #0 [ <required> $mode ]
68      }
69    }
70
71    Method [ <internal%s> public method getbuffering ] {
72
73      - Parameters [0] {
74      }
75    }
76
77    Method [ <internal%s> public method rewind ] {
78
79      - Parameters [0] {
80      }
81    }
82
83    Method [ <internal%s> public method read ] {
84
85      - Parameters [1] {
86        Parameter #0 [ <required> $length ]
87      }
88    }
89
90    Method [ <internal%s> public method eof ] {
91
92      - Parameters [0] {
93      }
94    }
95
96    Method [ <internal%s> public method seek ] {
97
98      - Parameters [2] {
99        Parameter #0 [ <required> $offset ]
100        Parameter #1 [ <optional> $whence ]
101      }
102    }
103
104    Method [ <internal%s> public method write ] {
105
106      - Parameters [2] {
107        Parameter #0 [ <required> $string ]
108        Parameter #1 [ <optional> $length ]
109      }
110    }
111
112    Method [ <internal%s> public method append ] {
113
114      - Parameters [1] {
115        Parameter #0 [ <required> $lob_descriptor_from ]
116      }
117    }
118
119    Method [ <internal%s> public method size ] {
120
121      - Parameters [0] {
122      }
123    }
124
125    Method [ <internal%s> public method writetofile ] {
126
127      - Parameters [3] {
128        Parameter #0 [ <required> $filename ]
129        Parameter #1 [ <optional> $start ]
130        Parameter #2 [ <optional> $length ]
131      }
132    }
133
134    Method [ <internal%s> public method export ] {
135
136      - Parameters [3] {
137        Parameter #0 [ <required> $filename ]
138        Parameter #1 [ <optional> $start ]
139        Parameter #2 [ <optional> $length ]
140      }
141    }
142
143    Method [ <internal%s> public method import ] {
144
145      - Parameters [1] {
146        Parameter #0 [ <required> $filename ]
147      }
148    }
149
150    Method [ <internal%s> public method writetemporary ] {
151
152      - Parameters [2] {
153        Parameter #0 [ <required> $data ]
154        Parameter #1 [ <optional> $type ]
155      }
156    }
157
158    Method [ <internal%s> public method close ] {
159
160      - Parameters [0] {
161      }
162    }
163
164    Method [ <internal%s> public method save ] {
165
166      - Parameters [2] {
167        Parameter #0 [ <required> $data ]
168        Parameter #1 [ <optional> $offset ]
169      }
170    }
171
172    Method [ <internal%s> public method savefile ] {
173
174      - Parameters [1] {
175        Parameter #0 [ <required> $filename ]
176      }
177    }
178
179    Method [ <internal%s> public method free ] {
180
181      - Parameters [0] {
182      }
183    }
184  }
185}
186
187Class [ <internal%s> class OCI-Collection ] {
188
189  - Constants [0] {
190  }
191
192  - Static properties [0] {
193  }
194
195  - Static methods [0] {
196  }
197
198  - Properties [0] {
199  }
200
201  - Methods [8] {
202    Method [ <internal%s> public method append ] {
203
204      - Parameters [1] {
205        Parameter #0 [ <required> $value ]
206      }
207    }
208
209    Method [ <internal%s> public method getelem ] {
210
211      - Parameters [1] {
212        Parameter #0 [ <required> $index ]
213      }
214    }
215
216    Method [ <internal%s> public method assignelem ] {
217
218      - Parameters [2] {
219        Parameter #0 [ <required> $index ]
220        Parameter #1 [ <required> $value ]
221      }
222    }
223
224    Method [ <internal%s> public method assign ] {
225
226      - Parameters [1] {
227        Parameter #0 [ <required> $collection_from ]
228      }
229    }
230
231    Method [ <internal%s> public method size ] {
232
233      - Parameters [0] {
234      }
235    }
236
237    Method [ <internal%s> public method max ] {
238
239      - Parameters [0] {
240      }
241    }
242
243    Method [ <internal%s> public method trim ] {
244
245      - Parameters [1] {
246        Parameter #0 [ <required> $number ]
247      }
248    }
249
250    Method [ <internal%s> public method free ] {
251
252      - Parameters [0] {
253      }
254    }
255  }
256}
257
258===DONE===
259