xref: /PHP-7.4/ext/filter/tests/008.phpt (revision 782352c5)
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(22) {
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(15) "validate_domain"
25  [5]=>
26  string(12) "validate_url"
27  [6]=>
28  string(14) "validate_email"
29  [7]=>
30  string(11) "validate_ip"
31  [8]=>
32  string(12) "validate_mac"
33  [9]=>
34  string(6) "string"
35  [10]=>
36  string(8) "stripped"
37  [11]=>
38  string(7) "encoded"
39  [12]=>
40  string(13) "special_chars"
41  [13]=>
42  string(18) "full_special_chars"
43  [14]=>
44  string(10) "unsafe_raw"
45  [15]=>
46  string(5) "email"
47  [16]=>
48  string(3) "url"
49  [17]=>
50  string(10) "number_int"
51  [18]=>
52  string(12) "number_float"
53  [19]=>
54  string(12) "magic_quotes"
55  [20]=>
56  string(11) "add_slashes"
57  [21]=>
58  string(8) "callback"
59}
60
61Warning: filter_list() expects exactly 0 parameters, 1 given in %s on line %d
62NULL
63Done
64