php-src/ext/filter/tests/009.phpt
Ilia Alshanetsky 80cecdb41f Refactor the filter extension
- Cleanup API
	- Added handling for circular references
	- Renamed functions.

# Original patch by Pierre
2006-10-03 02:16:53 +00:00

31 lines
537 B
PHP

--TEST--
filter_id()
--FILE--
<?php
var_dump(filter_id("stripped"));
var_dump(filter_id("string"));
var_dump(filter_id("url"));
var_dump(filter_id("int"));
var_dump(filter_id("none"));
var_dump(filter_id(array()));
var_dump(filter_id(-1));
var_dump(filter_id(0,0,0));
echo "Done\n";
?>
--EXPECTF--
int(513)
int(513)
int(518)
int(257)
bool(false)
Warning: filter_id() expects parameter 1 to be string, array given in %s on line %d
NULL
bool(false)
Warning: filter_id() expects exactly 1 parameter, 3 given in %s on line %d
NULL
Done