Annotation of embedaddon/php/ext/filter/tests/009.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: filter_id()
! 3: --SKIPIF--
! 4: <?php if (!extension_loaded("filter")) die("skip"); ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: var_dump(filter_id("stripped"));
! 9: var_dump(filter_id("string"));
! 10: var_dump(filter_id("url"));
! 11: var_dump(filter_id("int"));
! 12: var_dump(filter_id("none"));
! 13: var_dump(filter_id(array()));
! 14: var_dump(filter_id(-1));
! 15: var_dump(filter_id(0,0,0));
! 16:
! 17: echo "Done\n";
! 18: ?>
! 19: --EXPECTF--
! 20: int(513)
! 21: int(513)
! 22: int(518)
! 23: int(257)
! 24: bool(false)
! 25:
! 26: Warning: filter_id() expects parameter 1 to be string, array given in %s on line %d
! 27: NULL
! 28: bool(false)
! 29:
! 30: Warning: filter_id() expects exactly 1 parameter, 3 given in %s on line %d
! 31: NULL
! 32: Done
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>