Annotation of embedaddon/php/ext/standard/tests/filters/001.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: stream_filter_register() and invalid arguments
3: --FILE--
4: <?php
5:
6: var_dump(stream_filter_register("", ""));
7: var_dump(stream_filter_register("test", ""));
8: var_dump(stream_filter_register("", "test"));
9: var_dump(stream_filter_register("------", "nonexistentclass"));
10: var_dump(stream_filter_register(array(), "aa"));
11: var_dump(stream_filter_register("", array()));
12:
13: echo "Done\n";
14: ?>
15: --EXPECTF--
16: Warning: stream_filter_register(): Filter name cannot be empty in %s on line %d
17: bool(false)
18:
19: Warning: stream_filter_register(): Class name cannot be empty in %s on line %d
20: bool(false)
21:
22: Warning: stream_filter_register(): Filter name cannot be empty in %s on line %d
23: bool(false)
24: bool(true)
25:
26: Warning: stream_filter_register() expects parameter 1 to be string, array given in %s on line %d
27: bool(false)
28:
29: Warning: stream_filter_register() expects parameter 2 to be string, array given in %s on line %d
30: bool(false)
31: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>