From: Pierre Joye Date: Thu, 25 May 2006 11:13:23 +0000 (+0000) Subject: - move 033.php to 033_run.php, 033.php cannot be run X-Git-Tag: BEFORE_NEW_OUTPUT_API~86 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0e8d548448af3dd8bba0a5f86764da7e8f80e73;p=php - move 033.php to 033_run.php, 033.php cannot be run --- diff --git a/ext/filter/tests/033.phpt b/ext/filter/tests/033.phpt index 3c87d0213c..c6ec13323e 100644 --- a/ext/filter/tests/033.phpt +++ b/ext/filter/tests/033.phpt @@ -2,7 +2,7 @@ Test all filters returned by input_filters_list() --FILE-- --EXPECT-- int 1 123 diff --git a/ext/filter/tests/033_run.php b/ext/filter/tests/033_run.php new file mode 100644 index 0000000000..229e7ba259 --- /dev/null +++ b/ext/filter/tests/033_run.php @@ -0,0 +1,23 @@ +()","O'Henry", "하퍼"); +foreach(input_filters_list() as $filter) { + if($filter=="validate_regexp") { + foreach($data as $k=>$d) $result[$k] = filter_data($d,input_name_to_filter($filter),array("regexp"=>'/^O.*/')); + } else { + foreach($data as $k=>$d) $result[$k] = filter_data($d,input_name_to_filter($filter),"test"); + } + printf("%-20s",$filter); + printf("%-5s",$result[0]); + printf("%-3s",$result[1]); + printf("%-15s",$result[2]); + printf("%-20s",$result[3]); + printf("%-10s",$result[4]); + printf("%-5s",$result[5]); + printf("%-20s",$result[6]); + printf("%-15s",$result[7]); + printf("%-10s\n",$result[8]); +} +?>