diff options
Diffstat (limited to 'ext/filter/tests/051.phpt')
| -rw-r--r-- | ext/filter/tests/051.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/filter/tests/051.phpt b/ext/filter/tests/051.phpt new file mode 100644 index 0000000..e34289d --- /dev/null +++ b/ext/filter/tests/051.phpt @@ -0,0 +1,11 @@ +--TEST-- +filter_var() and default values +--SKIPIF-- +<?php if (!extension_loaded("filter")) die("skip"); ?> +--FILE-- +<?php +$tmp = $default = 321; +var_dump(filter_var("123asd", FILTER_VALIDATE_INT, array("options"=>array("default"=>$default)))); +?> +--EXPECT-- +int(321) |
