1 | <?php |
||
16 | class RemovedExtensionsSniffTest extends BaseSniffTest |
||
17 | { |
||
18 | /** |
||
19 | * Sniffed file |
||
20 | * |
||
21 | * @var PHP_CodeSniffer_File |
||
22 | */ |
||
23 | protected $_sniffFile; |
||
24 | |||
25 | /** |
||
26 | * setUp |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function setUp() |
||
36 | |||
37 | /** |
||
38 | * testActiveScript |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function testActiveScript() |
||
47 | |||
48 | /** |
||
49 | * testCpdf |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function testCpdf() |
||
59 | |||
60 | /** |
||
61 | * testDbase |
||
62 | * |
||
63 | * @return void |
||
64 | */ |
||
65 | public function testDbase() |
||
69 | |||
70 | /** |
||
71 | * testDbx |
||
72 | * |
||
73 | * @return void |
||
74 | */ |
||
75 | public function testDbx() |
||
79 | |||
80 | /** |
||
81 | * testDio |
||
82 | * |
||
83 | * @return void |
||
84 | */ |
||
85 | public function testDio() |
||
89 | |||
90 | /** |
||
91 | * testFam |
||
92 | * |
||
93 | * @return void |
||
94 | */ |
||
95 | public function testFam() |
||
99 | |||
100 | /** |
||
101 | * testFbsql |
||
102 | * |
||
103 | * @return void |
||
104 | */ |
||
105 | public function testFbsql() |
||
109 | |||
110 | /** |
||
111 | * testFdf |
||
112 | * |
||
113 | * @return void |
||
114 | */ |
||
115 | public function testFdf() |
||
119 | |||
120 | /** |
||
121 | * testFilepro |
||
122 | * |
||
123 | * @return void |
||
124 | */ |
||
125 | public function testFilepro() |
||
129 | |||
130 | /** |
||
131 | * testHwApi |
||
132 | * |
||
133 | * @return void |
||
134 | */ |
||
135 | public function testHwApi() |
||
139 | |||
140 | /** |
||
141 | * testIngres |
||
142 | * |
||
143 | * @return void |
||
144 | */ |
||
145 | public function testIngres() |
||
149 | |||
150 | /** |
||
151 | * testIrcg |
||
152 | * |
||
153 | * @return void |
||
154 | */ |
||
155 | public function testIrcg() |
||
159 | |||
160 | /** |
||
161 | * testMcve |
||
162 | * |
||
163 | * @return void |
||
164 | */ |
||
165 | public function testMcve() |
||
169 | |||
170 | /** |
||
171 | * testMing |
||
172 | * |
||
173 | * @return void |
||
174 | */ |
||
175 | public function testMing() |
||
179 | |||
180 | /** |
||
181 | * testMnogosearch |
||
182 | * |
||
183 | * @return void |
||
184 | */ |
||
185 | public function testMnogosearch() |
||
189 | |||
190 | /** |
||
191 | * testMsql |
||
192 | * |
||
193 | * @return void |
||
194 | */ |
||
195 | public function testMsql() |
||
199 | |||
200 | /** |
||
201 | * testMysql |
||
202 | * |
||
203 | * @return void |
||
204 | */ |
||
205 | public function testMysql() |
||
206 | { |
||
207 | $file = $this->sniffFile('sniff-examples/removed_extensions.php', '5.4'); |
||
208 | $this->assertNoViolation($file, 38); |
||
209 | |||
210 | $file = $this->sniffFile('sniff-examples/removed_extensions.php', '5.5'); |
||
211 | $this->assertWarning($file, 38, "Extension 'mysql_' is deprecated since PHP 5.5"); |
||
212 | } |
||
213 | |||
214 | /** |
||
215 | * testNcurses |
||
216 | * |
||
217 | * @return void |
||
218 | */ |
||
219 | public function testNcurses() |
||
223 | |||
224 | /** |
||
225 | * testOracle |
||
226 | * |
||
227 | * @return void |
||
228 | */ |
||
229 | public function testOracle() |
||
233 | |||
234 | /** |
||
235 | * testOvrimos |
||
236 | * |
||
237 | * @return void |
||
238 | */ |
||
239 | public function testOvrimos() |
||
243 | |||
244 | /** |
||
245 | * testPfpro |
||
246 | * |
||
247 | * @return void |
||
248 | */ |
||
249 | public function testPfpro() |
||
253 | |||
254 | /** |
||
255 | * testSqlite |
||
256 | * |
||
257 | * @return void |
||
258 | */ |
||
259 | public function testSqlite() |
||
263 | |||
264 | /** |
||
265 | * testSybase |
||
266 | * |
||
267 | * @return void |
||
268 | */ |
||
269 | public function testSybase() |
||
273 | |||
274 | /** |
||
275 | * testW32api |
||
276 | * |
||
277 | * @return void |
||
278 | */ |
||
279 | public function testW32api() |
||
283 | |||
284 | /** |
||
285 | * testYp |
||
286 | * |
||
287 | * @return void |
||
288 | */ |
||
289 | public function testYp() |
||
293 | |||
294 | /** |
||
295 | * testErege |
||
296 | * |
||
297 | * @return void |
||
298 | */ |
||
299 | public function testEreg() |
||
303 | |||
304 | /** |
||
305 | * testMssql |
||
306 | * |
||
307 | * @return void |
||
308 | */ |
||
309 | public function testMssql() |
||
313 | |||
314 | /** |
||
315 | * testNotAFunctionCall |
||
316 | * |
||
317 | * @return void |
||
318 | */ |
||
319 | public function testNotAFunctionCall() |
||
323 | |||
324 | /** |
||
325 | * testFunctionDeclaration |
||
326 | * |
||
327 | * @return void |
||
328 | */ |
||
329 | public function testFunctionDeclaration() |
||
333 | |||
334 | /** |
||
335 | * testNewClass |
||
336 | * |
||
337 | * @return void |
||
338 | */ |
||
339 | public function testNewClass() |
||
343 | |||
344 | /** |
||
345 | * testMethod |
||
346 | * |
||
347 | * @return void |
||
348 | */ |
||
349 | public function testMethod() |
||
353 | } |
||
354 |