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