]> granicus.if.org Git - php/commitdiff
New test
authorFelipe Pena <felipe@php.net>
Sun, 24 Feb 2008 18:49:55 +0000 (18:49 +0000)
committerFelipe Pena <felipe@php.net>
Sun, 24 Feb 2008 18:49:55 +0000 (18:49 +0000)
ext/filter/tests/053.phpt [new file with mode: 0644]

diff --git a/ext/filter/tests/053.phpt b/ext/filter/tests/053.phpt
new file mode 100644 (file)
index 0000000..218f7fd
--- /dev/null
@@ -0,0 +1,15 @@
+--TEST--
+filter_var() - using callback
+--FILE--
+<?php
+
+function filter_test($str) { return FALSE; }
+filter_var('durty/boy', FILTER_CALLBACK, array(
+   'options'   => 'filter_test',
+));
+
+print "Done\n";
+
+?>
+--EXPECTF--
+Done