From: Pierre Joye Date: Sun, 17 Sep 2006 18:03:45 +0000 (+0000) Subject: - add test for callback and input_get and input_get_args X-Git-Tag: php-5.2.0RC5~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=442112503a765fc08bb03e5b54f294a51dc84580;p=php - add test for callback and input_get and input_get_args this test fails now, the callback never worked with input_get or args fix already done, will be applied with the api shake up. --- diff --git a/ext/filter/tests/037.phpt b/ext/filter/tests/037.phpt new file mode 100644 index 0000000000..5e5dc26f84 --- /dev/null +++ b/ext/filter/tests/037.phpt @@ -0,0 +1,39 @@ +--TEST-- +GET and data callback tests +--GET-- +a=1&b=2 +--FILE-- + array( + 'filter' => FILTER_CALLBACK, + 'options' => 'myfunc' + ), + 'b' => FILTER_VALIDATE_INT + ) + ); + +var_dump($res); +?> +--EXPECT-- +1_callback +2 +data_callback +array(2) { + ["a"]=> + string(10) "1_callback" + ["b"]=> + int(2) +}