xref: /PHP-5.4/ext/filter/tests/008.phpt (revision 49b8860a)
1--TEST--
2filter_list()
3--SKIPIF--
4<?php if (!extension_loaded("filter")) die("skip"); ?>
5--FILE--
6<?php
7
8var_dump(filter_list());
9var_dump(filter_list(array()));
10
11echo "Done\n";
12?>
13--EXPECTF--
14array(19) {
15  [0]=>
16  string(3) "int"
17  [1]=>
18  string(7) "boolean"
19  [2]=>
20  string(5) "float"
21  [3]=>
22  string(15) "validate_regexp"
23  [4]=>
24  string(12) "validate_url"
25  [5]=>
26  string(14) "validate_email"
27  [6]=>
28  string(11) "validate_ip"
29  [7]=>
30  string(6) "string"
31  [8]=>
32  string(8) "stripped"
33  [9]=>
34  string(7) "encoded"
35  [10]=>
36  string(13) "special_chars"
37  [11]=>
38  string(18) "full_special_chars"
39  [12]=>
40  string(10) "unsafe_raw"
41  [13]=>
42  string(5) "email"
43  [14]=>
44  string(3) "url"
45  [15]=>
46  string(10) "number_int"
47  [16]=>
48  string(12) "number_float"
49  [17]=>
50  string(12) "magic_quotes"
51  [18]=>
52  string(8) "callback"
53}
54
55Warning: filter_list() expects exactly 0 parameters, 1 given in %s on line %d
56NULL
57Done
58