From c8e10c6119081a7af98bf2103e30fdd6dc791666 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 7 Mar 2019 10:38:11 +0100 Subject: More zpp error/variation test removals --- ext/curl/tests/curl_multi_getcontent_error1.phpt | 51 ---- ext/curl/tests/curl_multi_getcontent_error2.phpt | 51 ---- ext/curl/tests/curl_multi_getcontent_error3.phpt | 53 ---- ext/curl/tests/curl_multi_getcontent_error4.phpt | 66 ----- ext/curl/tests/curl_multi_init_param.phpt | 27 -- ext/curl/tests/curl_version_error.phpt | 28 -- ext/fileinfo/tests/finfo_buffer_error.phpt | 45 --- ...ettext_bind_textdomain_codeset-wrongparams.phpt | 23 -- .../tests/gettext_bindtextdomain-wrongparams.phpt | 19 -- .../tests/gettext_dcgettext-wrongparams.phpt | 16 -- .../tests/gettext_dgettext_error_wrongparams.phpt | 34 --- .../tests/gettext_dngettext-wrongparams.phpt | 23 -- .../tests/gettext_gettext_error_wrongparams.phpt | 17 -- .../tests/gettext_ngettext-wrongparams.phpt | 33 --- .../tests/gettext_textdomain-wrongparams.phpt | 25 -- ext/json/tests/json_encode_error.phpt | 28 -- ext/phar/tests/phar_buildfromdirectory3.phpt | 27 -- ext/phar/tests/phar_buildfromiterator2.phpt | 26 -- ext/phar/tests/phar_buildfromiterator3.phpt | 54 ---- ext/session/tests/session_destroy_error.phpt | 217 --------------- .../tests/session_set_cookie_params_error.phpt | 309 --------------------- ext/sockets/tests/socket_create_listen_params.phpt | 0 ext/standard/tests/array/array_filter_error.phpt | 50 ---- ext/standard/tests/array/array_pad_error.phpt | 53 ---- ext/standard/tests/array/array_search_errors.phpt | 44 --- ext/standard/tests/array/array_unshift_error.phpt | 24 -- .../tests/class_object/class_exists_error_001.phpt | 42 --- .../tests/class_object/get_class_error_001.phpt | 28 -- .../class_object/get_class_methods_error_001.phpt | 41 --- .../tests/class_object/get_class_vars_error.phpt | 38 --- .../class_object/get_class_vars_variation1.phpt | 181 ------------ .../get_declared_classes_error_001.phpt | 27 -- .../get_declared_interfaces_error_001.phpt | 27 -- .../get_declared_traits_error_001.phpt | 27 -- .../class_object/get_object_vars_error_001.phpt | 37 --- .../class_object/get_parent_class_error_001.phpt | 29 -- .../tests/class_object/interface_exists_error.phpt | 38 --- .../tests/class_object/is_a_error_001.phpt | 51 ---- .../class_object/is_subclass_of_error_001.phpt | 58 ---- .../class_object/method_exists_error_001.phpt | 40 --- .../tests/class_object/trait_exists_error_001.phpt | 42 --- .../tests/general_functions/debug_zval_dump_e.phpt | 22 -- .../general_functions/escapeshellarg_error.phpt | 73 ----- .../tests/general_functions/floatval_error.phpt | 40 --- .../tests/general_functions/get_cfg_var_error.phpt | 27 -- .../general_functions/get_cfg_var_variation1.phpt | 46 --- .../general_functions/get_cfg_var_variation6.phpt | 44 --- .../get_defined_constants_error.phpt | 25 -- .../get_loaded_extensions_error.phpt | 26 -- .../general_functions/get_magic_quotes_gpc.phpt | 26 -- .../get_magic_quotes_runtime.phpt | 27 -- .../general_functions/get_resource_type_error.phpt | 34 --- .../get_resource_type_variation1.phpt | 74 ----- .../tests/general_functions/getrusage_error.phpt | 70 ----- .../general_functions/getservbyname_error.phpt | 21 -- .../getservbyname_variation1.phpt | 40 --- .../getservbyname_variation13.phpt | 38 --- .../getservbyname_variation6.phpt | 38 --- .../getservbyname_variation8.phpt | 40 --- .../general_functions/getservbyport_error.phpt | 21 -- .../tests/general_functions/is_callable_error.phpt | 32 --- .../tests/general_functions/is_resource_error.phpt | 34 --- .../tests/general_functions/proc_nice_error.phpt | 28 -- .../general_functions/proc_nice_variation1.phpt | 48 ---- .../general_functions/proc_nice_variation7.phpt | 49 ---- .../tests/general_functions/uniqid_error.phpt | 46 --- .../tests/general_functions/var_export_error1.phpt | 38 --- ext/standard/tests/strings/addcslashes_004.phpt | 30 -- ext/standard/tests/strings/addslashes_error.phpt | 43 --- ext/standard/tests/strings/basename_error.phpt | 58 ---- ext/standard/tests/strings/bin2hex_error.phpt | 34 --- ext/standard/tests/strings/chop_error.phpt | 44 --- ext/standard/tests/strings/chunk_split_error.phpt | 40 --- .../tests/strings/convert_uudecode_error.phpt | 34 --- .../tests/strings/convert_uuencode_error.phpt | 34 --- ext/standard/tests/strings/count_chars_error.phpt | 36 --- ext/standard/tests/strings/crc32_error.phpt | 41 --- ext/standard/tests/strings/explode_error.phpt | 37 --- .../strings/get_html_translation_table_error.phpt | 29 -- ext/standard/tests/strings/hebrev_error.phpt | 34 --- ext/standard/tests/strings/hebrevc_error.phpt | 34 --- .../strings/htmlspecialchars_decode_error.phpt | 37 --- .../tests/strings/http_build_query_error.phpt | 13 - ext/standard/tests/strings/md5_error.phpt | 35 --- ext/standard/tests/strings/nl2br_error.phpt | 34 --- ext/standard/tests/strings/nl_langinfo_error1.phpt | 40 --- .../tests/strings/nl_langinfo_variation1.phpt | 104 ------- .../tests/strings/number_format_error.phpt | 38 --- ext/standard/tests/strings/ord_error.phpt | 34 --- ext/standard/tests/strings/parse_str_error1.phpt | 32 --- .../strings/quoted_printable_decode_error.phpt | 38 --- ext/standard/tests/strings/quotemeta_error.phpt | 34 --- ext/standard/tests/strings/sha1_error.phpt | 35 --- ext/standard/tests/strings/similar_text_error.phpt | 29 -- ext/standard/tests/strings/soundex_error.phpt | 33 --- ext/standard/tests/strings/sscanf_variation1.phpt | 169 ----------- ext/standard/tests/strings/sscanf_variation2.phpt | 153 ---------- ext/standard/tests/strings/str_replace_error.phpt | 41 --- ext/standard/tests/strings/str_rot13_error.phpt | 32 --- ext/standard/tests/strings/str_shuffle_error.phpt | 33 --- ext/standard/tests/strings/str_split_error.phpt | 38 --- ext/standard/tests/strings/strcoll_error.phpt | 46 --- ext/standard/tests/strings/strcspn_error.phpt | 57 ---- ext/standard/tests/strings/strip_tags_error.phpt | 40 --- .../tests/strings/stripcslashes_error.phpt | 34 --- .../tests/strings/stripos_variation15.phpt | 185 ------------ ext/standard/tests/strings/stripslashes_error.phpt | 43 --- ext/standard/tests/strings/strlen_variation1.phpt | 137 --------- .../tests/strings/strnatcasecmp_error.phpt | 33 --- ext/standard/tests/strings/strnatcmp_error.phpt | 34 --- ext/standard/tests/strings/strrchr_error.phpt | 40 --- ext/standard/tests/strings/strrev_error.phpt | 27 -- ext/standard/tests/strings/strrpos_error.phpt | 34 --- ext/standard/tests/strings/strspn_error.phpt | 57 ---- ext/standard/tests/strings/strtok_error.phpt | 55 ---- ext/standard/tests/strings/strtr_error.phpt | 41 --- ext/standard/tests/strings/ucwords_error.phpt | 41 --- ext/standard/tests/strings/utf8_decode_error.phpt | 37 --- ext/standard/tests/strings/utf8_encode_error.phpt | 37 --- ext/standard/tests/strings/vfprintf_error2.phpt | 48 ---- ext/standard/tests/strings/vprintf_error.phpt | 46 --- ext/standard/tests/strings/vsprintf_error.phpt | 46 --- 122 files changed, 5704 deletions(-) delete mode 100644 ext/curl/tests/curl_multi_getcontent_error1.phpt delete mode 100644 ext/curl/tests/curl_multi_getcontent_error2.phpt delete mode 100644 ext/curl/tests/curl_multi_getcontent_error3.phpt delete mode 100644 ext/curl/tests/curl_multi_getcontent_error4.phpt delete mode 100644 ext/curl/tests/curl_multi_init_param.phpt delete mode 100644 ext/curl/tests/curl_version_error.phpt delete mode 100644 ext/fileinfo/tests/finfo_buffer_error.phpt delete mode 100644 ext/gettext/tests/gettext_bind_textdomain_codeset-wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_bindtextdomain-wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_dcgettext-wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_dgettext_error_wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_dngettext-wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_gettext_error_wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_ngettext-wrongparams.phpt delete mode 100644 ext/gettext/tests/gettext_textdomain-wrongparams.phpt delete mode 100644 ext/json/tests/json_encode_error.phpt delete mode 100644 ext/phar/tests/phar_buildfromdirectory3.phpt delete mode 100644 ext/phar/tests/phar_buildfromiterator2.phpt delete mode 100644 ext/phar/tests/phar_buildfromiterator3.phpt delete mode 100644 ext/session/tests/session_destroy_error.phpt delete mode 100644 ext/session/tests/session_set_cookie_params_error.phpt delete mode 100644 ext/sockets/tests/socket_create_listen_params.phpt delete mode 100644 ext/standard/tests/array/array_filter_error.phpt delete mode 100644 ext/standard/tests/array/array_pad_error.phpt delete mode 100644 ext/standard/tests/array/array_search_errors.phpt delete mode 100644 ext/standard/tests/array/array_unshift_error.phpt delete mode 100644 ext/standard/tests/class_object/class_exists_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_class_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_class_methods_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_class_vars_error.phpt delete mode 100644 ext/standard/tests/class_object/get_class_vars_variation1.phpt delete mode 100644 ext/standard/tests/class_object/get_declared_classes_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_declared_traits_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_object_vars_error_001.phpt delete mode 100644 ext/standard/tests/class_object/get_parent_class_error_001.phpt delete mode 100644 ext/standard/tests/class_object/interface_exists_error.phpt delete mode 100644 ext/standard/tests/class_object/is_a_error_001.phpt delete mode 100644 ext/standard/tests/class_object/is_subclass_of_error_001.phpt delete mode 100644 ext/standard/tests/class_object/method_exists_error_001.phpt delete mode 100644 ext/standard/tests/class_object/trait_exists_error_001.phpt delete mode 100644 ext/standard/tests/general_functions/debug_zval_dump_e.phpt delete mode 100644 ext/standard/tests/general_functions/escapeshellarg_error.phpt delete mode 100644 ext/standard/tests/general_functions/floatval_error.phpt delete mode 100644 ext/standard/tests/general_functions/get_cfg_var_error.phpt delete mode 100644 ext/standard/tests/general_functions/get_cfg_var_variation1.phpt delete mode 100644 ext/standard/tests/general_functions/get_cfg_var_variation6.phpt delete mode 100644 ext/standard/tests/general_functions/get_defined_constants_error.phpt delete mode 100644 ext/standard/tests/general_functions/get_loaded_extensions_error.phpt delete mode 100644 ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt delete mode 100644 ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt delete mode 100644 ext/standard/tests/general_functions/get_resource_type_error.phpt delete mode 100644 ext/standard/tests/general_functions/get_resource_type_variation1.phpt delete mode 100644 ext/standard/tests/general_functions/getrusage_error.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyname_error.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyname_variation1.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyname_variation13.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyname_variation6.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyname_variation8.phpt delete mode 100644 ext/standard/tests/general_functions/getservbyport_error.phpt delete mode 100644 ext/standard/tests/general_functions/is_callable_error.phpt delete mode 100644 ext/standard/tests/general_functions/is_resource_error.phpt delete mode 100644 ext/standard/tests/general_functions/proc_nice_error.phpt delete mode 100644 ext/standard/tests/general_functions/proc_nice_variation1.phpt delete mode 100644 ext/standard/tests/general_functions/proc_nice_variation7.phpt delete mode 100644 ext/standard/tests/general_functions/uniqid_error.phpt delete mode 100644 ext/standard/tests/general_functions/var_export_error1.phpt delete mode 100644 ext/standard/tests/strings/addcslashes_004.phpt delete mode 100644 ext/standard/tests/strings/addslashes_error.phpt delete mode 100644 ext/standard/tests/strings/basename_error.phpt delete mode 100644 ext/standard/tests/strings/bin2hex_error.phpt delete mode 100644 ext/standard/tests/strings/chop_error.phpt delete mode 100644 ext/standard/tests/strings/chunk_split_error.phpt delete mode 100644 ext/standard/tests/strings/convert_uudecode_error.phpt delete mode 100644 ext/standard/tests/strings/convert_uuencode_error.phpt delete mode 100644 ext/standard/tests/strings/count_chars_error.phpt delete mode 100644 ext/standard/tests/strings/crc32_error.phpt delete mode 100644 ext/standard/tests/strings/explode_error.phpt delete mode 100644 ext/standard/tests/strings/get_html_translation_table_error.phpt delete mode 100644 ext/standard/tests/strings/hebrev_error.phpt delete mode 100644 ext/standard/tests/strings/hebrevc_error.phpt delete mode 100644 ext/standard/tests/strings/htmlspecialchars_decode_error.phpt delete mode 100644 ext/standard/tests/strings/http_build_query_error.phpt delete mode 100644 ext/standard/tests/strings/md5_error.phpt delete mode 100644 ext/standard/tests/strings/nl2br_error.phpt delete mode 100644 ext/standard/tests/strings/nl_langinfo_error1.phpt delete mode 100644 ext/standard/tests/strings/nl_langinfo_variation1.phpt delete mode 100644 ext/standard/tests/strings/number_format_error.phpt delete mode 100644 ext/standard/tests/strings/ord_error.phpt delete mode 100644 ext/standard/tests/strings/parse_str_error1.phpt delete mode 100644 ext/standard/tests/strings/quoted_printable_decode_error.phpt delete mode 100644 ext/standard/tests/strings/quotemeta_error.phpt delete mode 100644 ext/standard/tests/strings/sha1_error.phpt delete mode 100644 ext/standard/tests/strings/similar_text_error.phpt delete mode 100644 ext/standard/tests/strings/soundex_error.phpt delete mode 100644 ext/standard/tests/strings/sscanf_variation1.phpt delete mode 100644 ext/standard/tests/strings/sscanf_variation2.phpt delete mode 100644 ext/standard/tests/strings/str_replace_error.phpt delete mode 100644 ext/standard/tests/strings/str_rot13_error.phpt delete mode 100644 ext/standard/tests/strings/str_shuffle_error.phpt delete mode 100644 ext/standard/tests/strings/str_split_error.phpt delete mode 100644 ext/standard/tests/strings/strcoll_error.phpt delete mode 100644 ext/standard/tests/strings/strcspn_error.phpt delete mode 100644 ext/standard/tests/strings/strip_tags_error.phpt delete mode 100644 ext/standard/tests/strings/stripcslashes_error.phpt delete mode 100644 ext/standard/tests/strings/stripos_variation15.phpt delete mode 100644 ext/standard/tests/strings/stripslashes_error.phpt delete mode 100644 ext/standard/tests/strings/strlen_variation1.phpt delete mode 100644 ext/standard/tests/strings/strnatcasecmp_error.phpt delete mode 100644 ext/standard/tests/strings/strnatcmp_error.phpt delete mode 100644 ext/standard/tests/strings/strrchr_error.phpt delete mode 100644 ext/standard/tests/strings/strrev_error.phpt delete mode 100644 ext/standard/tests/strings/strrpos_error.phpt delete mode 100644 ext/standard/tests/strings/strspn_error.phpt delete mode 100644 ext/standard/tests/strings/strtok_error.phpt delete mode 100644 ext/standard/tests/strings/strtr_error.phpt delete mode 100644 ext/standard/tests/strings/ucwords_error.phpt delete mode 100644 ext/standard/tests/strings/utf8_decode_error.phpt delete mode 100644 ext/standard/tests/strings/utf8_encode_error.phpt delete mode 100644 ext/standard/tests/strings/vfprintf_error2.phpt delete mode 100644 ext/standard/tests/strings/vprintf_error.phpt delete mode 100644 ext/standard/tests/strings/vsprintf_error.phpt diff --git a/ext/curl/tests/curl_multi_getcontent_error1.phpt b/ext/curl/tests/curl_multi_getcontent_error1.phpt deleted file mode 100644 index 6e23a2902a..0000000000 --- a/ext/curl/tests/curl_multi_getcontent_error1.phpt +++ /dev/null @@ -1,51 +0,0 @@ ---TEST-- -Curl_multi_getcontent() error test ---CREDITS-- -Rein Velt (rein@velt.org) -#TestFest Utrecht 20090509 ---SKIPIF-- - ---FILE-- -0); - - $results1=curl_multi_getcontent(); //no parameter - $results2=curl_multi_getcontent($ch2); - - //CLOSE - curl_multi_remove_handle($mh,$ch1); - curl_multi_remove_handle($mh,$ch2); - curl_multi_close($mh); - - echo $results1; - echo $results2; - -?> ---EXPECTF-- -Warning: curl_multi_getcontent() expects exactly 1 parameter, 0 given in %s on line %d -CURL2 diff --git a/ext/curl/tests/curl_multi_getcontent_error2.phpt b/ext/curl/tests/curl_multi_getcontent_error2.phpt deleted file mode 100644 index 1c8fa67663..0000000000 --- a/ext/curl/tests/curl_multi_getcontent_error2.phpt +++ /dev/null @@ -1,51 +0,0 @@ ---TEST-- -Curl_multi_getcontent() error test ---CREDITS-- -Rein Velt (rein@velt.org) -#TestFest Utrecht 20090509 ---SKIPIF-- - ---FILE-- -0); - - $results1=curl_multi_getcontent($ch1,$ch2); //no parameter - $results2=curl_multi_getcontent($ch2); - - //CLOSE - curl_multi_remove_handle($mh,$ch1); - curl_multi_remove_handle($mh,$ch2); - curl_multi_close($mh); - - echo $results1; - echo $results2; - -?> ---EXPECTF-- -Warning: curl_multi_getcontent() expects exactly 1 parameter, 2 given in %s on line %d -CURL2 diff --git a/ext/curl/tests/curl_multi_getcontent_error3.phpt b/ext/curl/tests/curl_multi_getcontent_error3.phpt deleted file mode 100644 index 0de4d03727..0000000000 --- a/ext/curl/tests/curl_multi_getcontent_error3.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -Curl_multi_getcontent() error test ---CREDITS-- -Rein Velt (rein@velt.org) -#TestFest Utrecht 20090509 ---SKIPIF-- - ---FILE-- -0); - - $ch1="string"; - - $results1=curl_multi_getcontent($ch1); //incorrect parameter type - $results2=curl_multi_getcontent($ch2); - - //CLOSE - //curl_multi_remove_handle($mh,$ch1); - curl_multi_remove_handle($mh,$ch2); - curl_multi_close($mh); - - echo $results1; - echo $results2; - -?> ---EXPECTF-- -Warning: curl_multi_getcontent() expects parameter 1 to be resource, string given in %s on line %d -CURL2 diff --git a/ext/curl/tests/curl_multi_getcontent_error4.phpt b/ext/curl/tests/curl_multi_getcontent_error4.phpt deleted file mode 100644 index 292766700e..0000000000 --- a/ext/curl/tests/curl_multi_getcontent_error4.phpt +++ /dev/null @@ -1,66 +0,0 @@ ---TEST-- -Curl_multi_getcontent() error test with undefined handle ---CREDITS-- -Rein Velt (rein@velt.org) -#TestFest Utrecht 20090509 ---SKIPIF-- - ---FILE-- -0); - - - $results1=curl_multi_getcontent($ch1); //incorrect parameter type - $results2=curl_multi_getcontent($ch2); - - //CLOSE - //curl_multi_remove_handle($mh,$ch1); - curl_multi_remove_handle($mh,$ch2); - curl_multi_close($mh); - - echo $results1; - echo $results2; - -?> ---EXPECTF-- -Notice: Undefined variable: ch1 in %s on line %d - -Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d - -Notice: Undefined variable: ch1 in %s on line %d - -Warning: curl_setopt() expects parameter 1 to be resource, null given in %s on line %d - -Notice: Undefined variable: ch1 in %s on line %d - -Warning: curl_multi_add_handle() expects parameter 2 to be resource, null given in %s on line %d - -Notice: Undefined variable: ch1 in %s on line %d - -Warning: curl_multi_getcontent() expects parameter 1 to be resource, null given in %s on line %d -CURL2 diff --git a/ext/curl/tests/curl_multi_init_param.phpt b/ext/curl/tests/curl_multi_init_param.phpt deleted file mode 100644 index e7848976aa..0000000000 --- a/ext/curl/tests/curl_multi_init_param.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test curl_multi_init() fail if any parameter is passed ---CREDITS-- -Paulo Eduardo -#testfest SP 2014 ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -Warning: curl_multi_init() expects exactly 0 parameters, %d given in %s on line %d -NULL -===DONE=== diff --git a/ext/curl/tests/curl_version_error.phpt b/ext/curl/tests/curl_version_error.phpt deleted file mode 100644 index 39f99a0fad..0000000000 --- a/ext/curl/tests/curl_version_error.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Test curl_version() function : error conditions ---SKIPIF-- - ---FILE-- - -===Done=== ---EXPECTF-- -*** Testing curl_version() : error conditions *** - --- Testing curl_version() function with more than expected no. of arguments -- - -Warning: curl_version() expects at most 1 parameter, 2 given in %s on line %d -NULL -===Done=== diff --git a/ext/fileinfo/tests/finfo_buffer_error.phpt b/ext/fileinfo/tests/finfo_buffer_error.phpt deleted file mode 100644 index 3e74d71ef9..0000000000 --- a/ext/fileinfo/tests/finfo_buffer_error.phpt +++ /dev/null @@ -1,45 +0,0 @@ ---TEST-- -Test finfo_buffer() function : error conditions ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing finfo_buffer() : error conditions *** - --- Testing finfo_buffer() function with more than expected no. of arguments -- - -Warning: finfo_buffer() expects at most 4 parameters, 5 given in %s on line %d -bool(false) - --- Testing finfo_buffer() function with less than expected no. of arguments -- - -Warning: finfo_buffer() expects at least 2 parameters, 1 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/gettext/tests/gettext_bind_textdomain_codeset-wrongparams.phpt b/ext/gettext/tests/gettext_bind_textdomain_codeset-wrongparams.phpt deleted file mode 100644 index 2feb2b2c28..0000000000 --- a/ext/gettext/tests/gettext_bind_textdomain_codeset-wrongparams.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -test if bind_textdomain_codeset() fails on wrong param count ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: bind_textdomain_codeset() expects exactly 2 parameters, 1 given in %s on line %d - -Warning: bind_textdomain_codeset() expects exactly 2 parameters, 3 given in %s on line %d -Done ---CREDITS-- -Florian Holzhauer fh-pt@fholzhauer.de -PHP Testfest Berlin 2009-05-09 diff --git a/ext/gettext/tests/gettext_bindtextdomain-wrongparams.phpt b/ext/gettext/tests/gettext_bindtextdomain-wrongparams.phpt deleted file mode 100644 index 1c9fb26194..0000000000 --- a/ext/gettext/tests/gettext_bindtextdomain-wrongparams.phpt +++ /dev/null @@ -1,19 +0,0 @@ ---TEST-- -Test if bindtextdomain() errors if you don't supply enough parameters. ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: dgettext() expects exactly 2 parameters, 1 given in %s.php on line %d - -Warning: dgettext() expects exactly 2 parameters, 0 given in %s.php on line %d - -Warning: dgettext() expects parameter 1 to be string, array given in %s.php on line %d - -Warning: dgettext() expects parameter 2 to be string, array given in %s.php on line %d ---CREDITS-- -Moritz Neuhaeuser, info@xcompile.net -PHP Testfest Berlin 2009-05-09 diff --git a/ext/gettext/tests/gettext_dngettext-wrongparams.phpt b/ext/gettext/tests/gettext_dngettext-wrongparams.phpt deleted file mode 100644 index 787b0b3af3..0000000000 --- a/ext/gettext/tests/gettext_dngettext-wrongparams.phpt +++ /dev/null @@ -1,23 +0,0 @@ ---TEST-- -Test if dngettext() errors when you don't supply the correct params. ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: gettext() expects parameter 1 to be string, array given in %s on line 2 ---CREDITS-- -Moritz Neuhaeuser, info@xcompile.net -PHP Testfest Berlin 2009-05-09 diff --git a/ext/gettext/tests/gettext_ngettext-wrongparams.phpt b/ext/gettext/tests/gettext_ngettext-wrongparams.phpt deleted file mode 100644 index aac6c8b7f6..0000000000 --- a/ext/gettext/tests/gettext_ngettext-wrongparams.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Check how ngettext() with wrong parameters behaves. ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: ngettext() expects parameter 1 to be string, array given in %s on line 2 - -Warning: ngettext() expects parameter 2 to be string, array given in %s on line 3 - -Warning: ngettext() expects parameter 3 to be int, array given in %s on line 4 - -Warning: ngettext() expects exactly 3 parameters, 0 given in %s on line 5 - -Warning: ngettext() expects exactly 3 parameters, 1 given in %s on line 6 - -Warning: ngettext() expects exactly 3 parameters, 2 given in %s on line 7 ---CREDITS-- -Tim Eggert, tim@elbart.com -PHP Testfest Berlin 2009-05-09 diff --git a/ext/gettext/tests/gettext_textdomain-wrongparams.phpt b/ext/gettext/tests/gettext_textdomain-wrongparams.phpt deleted file mode 100644 index e563e7b210..0000000000 --- a/ext/gettext/tests/gettext_textdomain-wrongparams.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Check how textdomain() with wrong parameters behaves. ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: textdomain() expects parameter 1 to be string, array given in %s on line 6 ---CREDITS-- -Christian Weiske, cweiske@php.net -PHP Testfest Berlin 2009-05-09 diff --git a/ext/json/tests/json_encode_error.phpt b/ext/json/tests/json_encode_error.phpt deleted file mode 100644 index defc7b474c..0000000000 --- a/ext/json/tests/json_encode_error.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Test json_encode() function : error conditions ---SKIPIF-- - ---FILE-- - -===Done=== ---EXPECTF-- -*** Testing json_encode() : error conditions *** - --- Testing json_encode() function with no arguments -- - -Warning: json_encode() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing json_encode() function with more than expected no. of arguments -- -string(5) ""abc"" -===Done=== diff --git a/ext/phar/tests/phar_buildfromdirectory3.phpt b/ext/phar/tests/phar_buildfromdirectory3.phpt deleted file mode 100644 index ba2103a757..0000000000 --- a/ext/phar/tests/phar_buildfromdirectory3.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Phar::buildFromDirectory() - object passed as second parameter ---SKIPIF-- - ---INI-- -phar.require_hash=0 -phar.readonly=0 ---FILE-- -buildFromDirectory('files', new stdClass); -} catch (Exception $e) { - var_dump(get_class($e)); - echo $e->getMessage() . "\n"; -} -?> -===DONE=== ---CLEAN-- - ---EXPECTF-- -Warning: Phar::buildFromDirectory() expects parameter 2 to be %string, object given in %sphar_buildfromdirectory3.php on line %d -===DONE=== diff --git a/ext/phar/tests/phar_buildfromiterator2.phpt b/ext/phar/tests/phar_buildfromiterator2.phpt deleted file mode 100644 index c6669e0555..0000000000 --- a/ext/phar/tests/phar_buildfromiterator2.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Phar::buildFromIterator() wrong object ---SKIPIF-- - ---INI-- -phar.require_hash=0 -phar.readonly=0 ---FILE-- -buildFromIterator(new stdClass); -} catch (Exception $e) { - var_dump(get_class($e)); - echo $e->getMessage() . "\n"; -} -?> -===DONE=== ---CLEAN-- - ---EXPECTF-- -Warning: Phar::buildFromIterator() expects parameter 1 to be Traversable, object given in %sphar_buildfromiterator2.php on line %d -===DONE=== diff --git a/ext/phar/tests/phar_buildfromiterator3.phpt b/ext/phar/tests/phar_buildfromiterator3.phpt deleted file mode 100644 index 8537fe3ef7..0000000000 --- a/ext/phar/tests/phar_buildfromiterator3.phpt +++ /dev/null @@ -1,54 +0,0 @@ ---TEST-- -Phar::buildFromIterator() iterator, but object passed ---SKIPIF-- - ---INI-- -phar.require_hash=0 -phar.readonly=0 ---FILE-- -a = $a; - } - function next() { - echo "next\n"; - return next($this->a); - } - function current() { - echo "current\n"; - return current($this->a); - } - function key() { - echo "key\n"; - return key($this->a); - } - function valid() { - echo "valid\n"; - return current($this->a); - } - function rewind() { - echo "rewind\n"; - return reset($this->a); - } -} -try { - $phar = new Phar(dirname(__FILE__) . '/buildfromiterator3.phar'); - $phar->buildFromIterator(new myIterator(array()), new stdClass); -} catch (Exception $e) { - var_dump(get_class($e)); - echo $e->getMessage() . "\n"; -} -?> -===DONE=== ---CLEAN-- - ---EXPECTF-- -Warning: Phar::buildFromIterator() expects parameter 2 to be %string, object given in %sphar_buildfromiterator3.php on line %d -===DONE=== diff --git a/ext/session/tests/session_destroy_error.phpt b/ext/session/tests/session_destroy_error.phpt deleted file mode 100644 index 4c1a293be2..0000000000 --- a/ext/session/tests/session_destroy_error.phpt +++ /dev/null @@ -1,217 +0,0 @@ ---TEST-- -Test session_destroy() function : error functionality ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing session_destroy() : error functionality *** - --- Iteration 1 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 2 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 3 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 4 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 5 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 6 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 7 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 8 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 9 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 10 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 11 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 12 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 13 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 14 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 15 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 16 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 17 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 18 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 19 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 20 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 21 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 22 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 23 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL - --- Iteration 24 -- - -Warning: session_destroy() expects exactly 0 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/session/tests/session_set_cookie_params_error.phpt b/ext/session/tests/session_set_cookie_params_error.phpt deleted file mode 100644 index 518c5abf89..0000000000 --- a/ext/session/tests/session_set_cookie_params_error.phpt +++ /dev/null @@ -1,309 +0,0 @@ ---TEST-- -Test session_set_cookie_params() function : error functionality ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing session_set_cookie_params() : error functionality *** - --- Iteration 1 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 2 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 3 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 4 -- - -Warning: session_set_cookie_params(): CookieLifetime cannot be negative in %s on line 81 -bool(false) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 5 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 6 -- - -Warning: session_set_cookie_params(): CookieLifetime cannot be negative in %s on line 81 -bool(false) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 7 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 8 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 9 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 10 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 11 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 12 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 13 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 14 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 15 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 16 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 17 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 18 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 19 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 20 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 21 -- -bool(true) -bool(true) -bool(true) - -Warning: session_set_cookie_params() expects parameter 4 to be bool, object given in %s on line 84 -NULL - -Warning: session_set_cookie_params() expects parameter 5 to be bool, object given in %s on line 85 -NULL -bool(true) - --- Iteration 22 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 23 -- -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) -bool(true) - --- Iteration 24 -- -bool(true) - -Warning: session_set_cookie_params() expects parameter 2 to be string, resource given in %s on line 82 -NULL - -Warning: session_set_cookie_params() expects parameter 3 to be string, resource given in %s on line 83 -NULL - -Warning: session_set_cookie_params() expects parameter 4 to be bool, resource given in %s on line 84 -NULL - -Warning: session_set_cookie_params() expects parameter 5 to be bool, resource given in %s on line 85 -NULL -bool(true) -Done diff --git a/ext/sockets/tests/socket_create_listen_params.phpt b/ext/sockets/tests/socket_create_listen_params.phpt deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/ext/standard/tests/array/array_filter_error.phpt b/ext/standard/tests/array/array_filter_error.phpt deleted file mode 100644 index 14fb78fb12..0000000000 --- a/ext/standard/tests/array/array_filter_error.phpt +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -Test array_filter() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing array_filter() : error conditions *** --- Testing array_filter() function with Zero arguments -- -Warning: array_filter() expects at least 1 parameter, 0 given in %s on line %d -NULL --- Testing array_filter() function with more than expected no. of arguments -- -Warning: array_filter() expects at most 3 parameters, 4 given in %s on line %d -NULL --- Testing array_filter() function with incorrect callback -- -Warning: array_filter() expects parameter 2 to be a valid callback, function 'even' not found or invalid function name in %s on line %d -NULL -Done diff --git a/ext/standard/tests/array/array_pad_error.phpt b/ext/standard/tests/array/array_pad_error.phpt deleted file mode 100644 index d0dc9ccb7f..0000000000 --- a/ext/standard/tests/array/array_pad_error.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -Test array_pad() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing array_pad() : error conditions *** - --- Testing array_pad() function with Zero arguments -- - -Warning: array_pad() expects exactly 3 parameters, 0 given in %s on line %d -NULL - --- Testing array_pad() function with more than expected no. of arguments -- - -Warning: array_pad() expects exactly 3 parameters, 4 given in %s on line %d -NULL - --- Testing array_pad() function with less than expected no. of arguments -- - -Warning: array_pad() expects exactly 3 parameters, 2 given in %s on line %d -NULL - -Warning: array_pad() expects exactly 3 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/array/array_search_errors.phpt b/ext/standard/tests/array/array_search_errors.phpt deleted file mode 100644 index 90502b2f53..0000000000 --- a/ext/standard/tests/array/array_search_errors.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Test array_search() function - error conditions ---FILE-- - ---EXPECTF-- -*** Testing error conditions of array_search() *** - -Warning: array_search() expects at least 2 parameters, 0 given in %s on line %d -NULL - -Warning: array_search() expects at most 3 parameters, 4 given in %s on line %d -NULL - -Warning: array_search() expects at least 2 parameters, 1 given in %s on line %d -NULL - -Warning: array_search() expects parameter 2 to be array, string given in %s on line %d -NULL - -Warning: array_search() expects parameter 2 to be array, int given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/array/array_unshift_error.phpt b/ext/standard/tests/array/array_unshift_error.phpt deleted file mode 100644 index d37abb22e0..0000000000 --- a/ext/standard/tests/array/array_unshift_error.phpt +++ /dev/null @@ -1,24 +0,0 @@ ---TEST-- -Test array_unshift() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing array_unshift() : error conditions *** - --- Testing array_unshift() function with Zero arguments -- - -Warning: array_unshift() expects at least 1 parameter, 0 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/class_object/class_exists_error_001.phpt b/ext/standard/tests/class_object/class_exists_error_001.phpt deleted file mode 100644 index 0c9a121470..0000000000 --- a/ext/standard/tests/class_object/class_exists_error_001.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -Test class_exists() function : error conditions (wrong number of arguments) ---FILE-- - ---EXPECTF-- -*** Testing class_exists() : error conditions *** - --- Testing class_exists() function with Zero arguments -- - -Warning: class_exists() expects at least 1 parameter, 0 given in %s on line 16 -NULL - --- Testing class_exists() function with more than expected no. of arguments -- - -Warning: class_exists() expects at most 2 parameters, 3 given in %s on line 23 -NULL -Done diff --git a/ext/standard/tests/class_object/get_class_error_001.phpt b/ext/standard/tests/class_object/get_class_error_001.phpt deleted file mode 100644 index 09c46dad2f..0000000000 --- a/ext/standard/tests/class_object/get_class_error_001.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Test get_class() function : error conditions - wrong number of arguments. ---FILE-- - ---EXPECTF-- -*** Testing get_class() : error conditions *** - --- Testing get_class() function with more than expected no. of arguments -- - -Warning: get_class() expects at most 1 parameter, 2 given in %s on line 14 -bool(false) -Done diff --git a/ext/standard/tests/class_object/get_class_methods_error_001.phpt b/ext/standard/tests/class_object/get_class_methods_error_001.phpt deleted file mode 100644 index ed3db7468d..0000000000 --- a/ext/standard/tests/class_object/get_class_methods_error_001.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Test get_class_methods() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing get_class_methods() : error conditions *** - --- Testing get_class_methods() function with Zero arguments -- - -Warning: get_class_methods() expects exactly 1 parameter, 0 given in %s on line 16 -NULL - --- Testing get_class_methods() function with more than expected no. of arguments -- - -Warning: get_class_methods() expects exactly 1 parameter, 2 given in %s on line 22 -NULL -Done diff --git a/ext/standard/tests/class_object/get_class_vars_error.phpt b/ext/standard/tests/class_object/get_class_vars_error.phpt deleted file mode 100644 index 8815070ce5..0000000000 --- a/ext/standard/tests/class_object/get_class_vars_error.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test get_class_vars() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing get_class_vars() : error conditions *** - --- Testing get_class_vars() function with more than expected no. of arguments -- - -Warning: get_class_vars() expects exactly 1 parameter, 2 given in %sget_class_vars_error.php on line %d -NULL - --- Testing get_class_vars() function with less than expected no. of arguments -- - -Warning: get_class_vars() expects exactly 1 parameter, 0 given in %sget_class_vars_error.php on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/class_object/get_class_vars_variation1.phpt b/ext/standard/tests/class_object/get_class_vars_variation1.phpt deleted file mode 100644 index 5ade3f240f..0000000000 --- a/ext/standard/tests/class_object/get_class_vars_variation1.phpt +++ /dev/null @@ -1,181 +0,0 @@ ---TEST-- -Test get_class_vars() function : usage variation ---FILE-- - 1, 'two' => 2); - -//array of values to iterate over -$inputs = array( - - // int data - 'int 0' => 0, - 'int 1' => 1, - 'int 12345' => 12345, - 'int -12345' => -2345, - - // float data - 'float 10.5' => 10.5, - 'float -10.5' => -10.5, - 'float 12.3456789000e10' => 12.3456789000e10, - 'float -12.3456789000e10' => -12.3456789000e10, - 'float .5' => .5, - - // array data - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - - // null data - 'uppercase NULL' => NULL, - 'lowercase null' => null, - - // boolean data - 'lowercase true' => true, - 'lowercase false' =>false, - 'uppercase TRUE' =>TRUE, - 'uppercase FALSE' =>FALSE, - - // empty data - 'empty string DQ' => "", - 'empty string SQ' => '', - - // object data - 'instance of classWithToString' => new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - - // undefined data - 'undefined var' => @$undefined_var, - - // unset data - 'unset var' => @$unset_var, -); - -// loop through each element of the array for method_name - -foreach($inputs as $key =>$value) { - echo "\n--$key--\n"; - var_dump( get_class_vars($value) ); -}; - -?> -===DONE=== ---EXPECTF-- -*** Testing get_class_vars() : usage variation *** - ---int 0-- -bool(false) - ---int 1-- -bool(false) - ---int 12345-- -bool(false) - ---int -12345-- -bool(false) - ---float 10.5-- -bool(false) - ---float -10.5-- -bool(false) - ---float 12.3456789000e10-- -bool(false) - ---float -12.3456789000e10-- -bool(false) - ---float .5-- -bool(false) - ---empty array-- - -Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d -NULL - ---int indexed array-- - -Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d -NULL - ---associative array-- - -Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d -NULL - ---nested arrays-- - -Warning: get_class_vars() expects parameter 1 to be string, array given in %sget_class_vars_variation1.php on line %d -NULL - ---uppercase NULL-- -bool(false) - ---lowercase null-- -bool(false) - ---lowercase true-- -bool(false) - ---lowercase false-- -bool(false) - ---uppercase TRUE-- -bool(false) - ---uppercase FALSE-- -bool(false) - ---empty string DQ-- -bool(false) - ---empty string SQ-- -bool(false) - ---instance of classWithToString-- -bool(false) - ---instance of classWithoutToString-- - -Warning: get_class_vars() expects parameter 1 to be string, object given in %sget_class_vars_variation1.php on line %d -NULL - ---undefined var-- -bool(false) - ---unset var-- -bool(false) -===DONE=== diff --git a/ext/standard/tests/class_object/get_declared_classes_error_001.phpt b/ext/standard/tests/class_object/get_declared_classes_error_001.phpt deleted file mode 100644 index 7132410fb8..0000000000 --- a/ext/standard/tests/class_object/get_declared_classes_error_001.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test get_declared_classes() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing get_declared_classes() : error conditions *** - --- Testing get_declared_classes() function with one argument -- - -Warning: get_declared_classes() expects exactly 0 parameters, 1 given in %s on line 13 -NULL -Done diff --git a/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt b/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt deleted file mode 100644 index 1b11981492..0000000000 --- a/ext/standard/tests/class_object/get_declared_interfaces_error_001.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test get_declared_interfaces() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing get_declared_interfaces() : error conditions *** - --- Testing get_declared_interfaces() function with one argument -- - -Warning: get_declared_interfaces() expects exactly 0 parameters, 1 given in %s on line 13 -NULL -Done diff --git a/ext/standard/tests/class_object/get_declared_traits_error_001.phpt b/ext/standard/tests/class_object/get_declared_traits_error_001.phpt deleted file mode 100644 index 522ad36a1b..0000000000 --- a/ext/standard/tests/class_object/get_declared_traits_error_001.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test get_declared_traits() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing get_declared_traits() : error conditions *** - --- Testing get_declared_traits() function with one argument -- - -Warning: get_declared_traits() expects exactly 0 parameters, 1 given in %s on line 13 -NULL -Done diff --git a/ext/standard/tests/class_object/get_object_vars_error_001.phpt b/ext/standard/tests/class_object/get_object_vars_error_001.phpt deleted file mode 100644 index c6488fe5e6..0000000000 --- a/ext/standard/tests/class_object/get_object_vars_error_001.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test get_object_vars() function : error conditions - wrong number of args ---FILE-- - ---EXPECTF-- -*** Testing get_object_vars() : error conditions *** - --- Testing get_object_vars() function with Zero arguments -- - -Warning: get_object_vars() expects exactly 1 parameter, 0 given in %s on line 12 -NULL - --- Testing get_object_vars() function with more than expected no. of arguments -- - -Warning: get_object_vars() expects exactly 1 parameter, 2 given in %s on line 18 -NULL -Done diff --git a/ext/standard/tests/class_object/get_parent_class_error_001.phpt b/ext/standard/tests/class_object/get_parent_class_error_001.phpt deleted file mode 100644 index c38275fe4c..0000000000 --- a/ext/standard/tests/class_object/get_parent_class_error_001.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test get_parent_class() function : error conditions - wrong number of args. ---FILE-- - ---EXPECTF-- -*** Testing get_parent_class() : error conditions *** - --- Testing get_parent_class() function with more than expected no. of arguments -- - -Warning: get_parent_class() expects at most 1 parameter, 2 given in %s on line 15 -NULL -Done diff --git a/ext/standard/tests/class_object/interface_exists_error.phpt b/ext/standard/tests/class_object/interface_exists_error.phpt deleted file mode 100644 index 1499e42d23..0000000000 --- a/ext/standard/tests/class_object/interface_exists_error.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test interface_exists() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing interface_exists() : error conditions *** - --- Testing interface_exists() function with Zero arguments -- - -Warning: interface_exists() expects at least 1 parameter, 0 given in %sinterface_exists_error.php on line %d -NULL - --- Testing interface_exists() function with more than expected no. of arguments -- - -Warning: interface_exists() expects at most 2 parameters, 3 given in %sinterface_exists_error.php on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/class_object/is_a_error_001.phpt b/ext/standard/tests/class_object/is_a_error_001.phpt deleted file mode 100644 index fd8f785bee..0000000000 --- a/ext/standard/tests/class_object/is_a_error_001.phpt +++ /dev/null @@ -1,51 +0,0 @@ ---TEST-- -Test is_a() function : error conditions - wrong number of args ---FILE-- - ---EXPECTF-- -*** Testing is_a() : error conditions *** - --- Testing is_a() function with more than expected no. of arguments -- - -Warning: is_a() expects at most 3 parameters, 4 given in %s on line 17 -NULL - --- Testing is_a() function with non-boolean in last position -- - -Warning: is_a() expects parameter 3 to be bool, object given in %s on line 21 -NULL - --- Testing is_a() function with less than expected no. of arguments -- - -Warning: is_a() expects at least 2 parameters, 1 given in %s on line 27 -NULL -Done diff --git a/ext/standard/tests/class_object/is_subclass_of_error_001.phpt b/ext/standard/tests/class_object/is_subclass_of_error_001.phpt deleted file mode 100644 index cd5b3b44a6..0000000000 --- a/ext/standard/tests/class_object/is_subclass_of_error_001.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -Test is_subclass_of() function : wrong number of args ---FILE-- - ---EXPECTF-- -*** Testing is_subclass_of() : error conditions *** - --- Testing is_subclass_of() function with more than expected no. of arguments -- - -Warning: is_subclass_of() expects at most 3 parameters, 4 given in %s on line 17 -NULL - --- Testing is_subclass_of() function with more than typo style invalid 3rd argument -- -bool(false) - --- Testing is_subclass_of() function with more than invalid 3rd argument -- - -Warning: is_subclass_of() expects parameter 3 to be bool, object given in %s on line 26 -NULL - --- Testing is_subclass_of() function with less than expected no. of arguments -- - -Warning: is_subclass_of() expects at least 2 parameters, 1 given in %s on line 31 -NULL -Done diff --git a/ext/standard/tests/class_object/method_exists_error_001.phpt b/ext/standard/tests/class_object/method_exists_error_001.phpt deleted file mode 100644 index de1edfe04a..0000000000 --- a/ext/standard/tests/class_object/method_exists_error_001.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test method_exists() function : error conditions - wrong number of args ---FILE-- - ---EXPECTF-- -*** Testing method_exists() : error conditions *** - --- Testing method_exists() function with more than expected no. of arguments -- - -Warning: method_exists() expects exactly 2 parameters, 3 given in %s on line 16 -NULL - --- Testing method_exists() function with less than expected no. of arguments -- - -Warning: method_exists() expects exactly 2 parameters, 1 given in %s on line 21 -NULL -Done diff --git a/ext/standard/tests/class_object/trait_exists_error_001.phpt b/ext/standard/tests/class_object/trait_exists_error_001.phpt deleted file mode 100644 index 70d18513db..0000000000 --- a/ext/standard/tests/class_object/trait_exists_error_001.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -Test trait_exists() function : error conditions (wrong number of arguments) ---FILE-- - ---EXPECTF-- -*** Testing trait_exists() : error conditions *** - --- Testing trait_exists() function with Zero arguments -- - -Warning: trait_exists() expects at least 1 parameter, 0 given in %s on line 16 -NULL - --- Testing trait_exists() function with more than expected no. of arguments -- - -Warning: trait_exists() expects at most 2 parameters, 3 given in %s on line 23 -NULL -Done diff --git a/ext/standard/tests/general_functions/debug_zval_dump_e.phpt b/ext/standard/tests/general_functions/debug_zval_dump_e.phpt deleted file mode 100644 index 8d1947e194..0000000000 --- a/ext/standard/tests/general_functions/debug_zval_dump_e.phpt +++ /dev/null @@ -1,22 +0,0 @@ ---TEST-- -Test debug_zval_dump() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing error conditions *** - -Warning: debug_zval_dump() expects at least %d parameter, %d given in %s on line %d -Done diff --git a/ext/standard/tests/general_functions/escapeshellarg_error.phpt b/ext/standard/tests/general_functions/escapeshellarg_error.phpt deleted file mode 100644 index 8746b5884a..0000000000 --- a/ext/standard/tests/general_functions/escapeshellarg_error.phpt +++ /dev/null @@ -1,73 +0,0 @@ ---TEST-- -Test escapeshellarg() function : error conditions - wrong numbers of parameters ---FILE-- - -===Done=== ---EXPECTF-- -*** Testing escapeshellarg() : error conditions *** - --- Testing escapeshellarg() function with no arguments -- - -Warning: escapeshellarg() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing escapeshellarg() function with more than expected no. of arguments -- - -Warning: escapeshellarg() expects exactly 1 parameter, 2 given in %s on line %d -NULL - --- Testing escapeshellarg() function with a object supplied for argument -- - -Warning: escapeshellarg() expects parameter 1 to be string, object given in %s on line %d -NULL - --- Testing escapeshellarg() function with a resource supplied for argument -- - -Warning: escapeshellarg() expects parameter 1 to be string, resource given in %s on line %d -NULL - --- Testing escapeshellarg() function with a array supplied for argument -- - -Warning: escapeshellarg() expects parameter 1 to be string, array given in %s on line %d -NULL -===Done=== diff --git a/ext/standard/tests/general_functions/floatval_error.phpt b/ext/standard/tests/general_functions/floatval_error.phpt deleted file mode 100644 index 3f6fca4076..0000000000 --- a/ext/standard/tests/general_functions/floatval_error.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Testing floatval() and its alias doubleval() : error conditions - wrong numbers of parametersns ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing floatval() and doubleval() : error conditions *** - --- Testing floatval() and doubleval() function with no arguments -- - -Warning: floatval() expects exactly 1 parameter, 0 given in %s on line %d -NULL - -Warning: doubleval() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing floatval() and doubleval() function with more than expected no. of arguments -- - -Warning: floatval() expects exactly 1 parameter, 2 given in %s on line %d -NULL - -Warning: doubleval() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_cfg_var_error.phpt b/ext/standard/tests/general_functions/get_cfg_var_error.phpt deleted file mode 100644 index 1c319bf790..0000000000 --- a/ext/standard/tests/general_functions/get_cfg_var_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test function get_cfg_var() by calling it more than or less than its expected arguments ---CREDITS-- -Francesco Fullone ff@ideato.it -#PHPTestFest Cesena Italia on 2009-06-20 ---INI-- -session.use_cookies=0 -session.serialize_handler=php -session.save_handler=files ---FILE-- - ---EXPECTF-- -*** Test by calling method or function with incorrect numbers of arguments *** - -Warning: get_cfg_var() expects exactly 1 parameter, 2 given in %s on line %d -NULL - -Warning: get_cfg_var() expects exactly 1 parameter, 0 given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/get_cfg_var_variation1.phpt b/ext/standard/tests/general_functions/get_cfg_var_variation1.phpt deleted file mode 100644 index 4e59f288ee..0000000000 --- a/ext/standard/tests/general_functions/get_cfg_var_variation1.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test function get_cfg_var() by substituting argument 1 with array values. ---CREDITS-- -Francesco Fullone ff@ideato.it -#PHPTestFest Cesena Italia on 2009-06-20 ---INI-- -session.use_cookies=0 -session.serialize_handler=php -session.save_handler=files ---FILE-- - 'one', 2 => 'two'); - -$variation_array = array( - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - ); - - -foreach ( $variation_array as $var ) { - var_dump(get_cfg_var( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with array values *** - -Warning: get_cfg_var() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: get_cfg_var() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: get_cfg_var() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: get_cfg_var() expects parameter 1 to be string, array given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/get_cfg_var_variation6.phpt b/ext/standard/tests/general_functions/get_cfg_var_variation6.phpt deleted file mode 100644 index d142621a13..0000000000 --- a/ext/standard/tests/general_functions/get_cfg_var_variation6.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Test function get_cfg_var() by substituting argument 1 with object values. ---CREDITS-- -Francesco Fullone ff@ideato.it -#PHPTestFest Cesena Italia on 2009-06-20 ---INI-- -session.use_cookies=0 -session.serialize_handler=php -session.save_handler=files ---FILE-- - new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -foreach ( $variation_array as $var ) { - var_dump(get_cfg_var( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with object values *** -string(1) "0" - -Warning: get_cfg_var() expects parameter 1 to be string, object given in %s.php on line %d -NULL diff --git a/ext/standard/tests/general_functions/get_defined_constants_error.phpt b/ext/standard/tests/general_functions/get_defined_constants_error.phpt deleted file mode 100644 index c9eb22e256..0000000000 --- a/ext/standard/tests/general_functions/get_defined_constants_error.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Test get_defined_constants() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing get_defined_constants() : error conditions *** - --- Testing get_defined_constants() function with more than expected no. of arguments -- - -Warning: get_defined_constants() expects at most 1 parameter, 2 given in %s on line 11 -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt b/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt deleted file mode 100644 index 8bb782fc79..0000000000 --- a/ext/standard/tests/general_functions/get_loaded_extensions_error.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Test get_loaded_extensions() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing get_loaded_extensions() : error conditions *** - --- Testing get_loaded_extensions() function with more than expected no. of arguments -- - -Warning: get_resource_type() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt b/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt deleted file mode 100644 index add1ea141c..0000000000 --- a/ext/standard/tests/general_functions/get_magic_quotes_gpc.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Test get_magic_quotes_gpc() function ---FILE-- - -===DONE=== ---EXPECTF-- -Simple testcase for get_magic_quotes_gpc() function -bool(false) - --- Error cases -- - -Warning: get_magic_quotes_gpc() expects exactly 0 parameters, 1 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt b/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt deleted file mode 100644 index 620e97cf83..0000000000 --- a/ext/standard/tests/general_functions/get_magic_quotes_runtime.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test get_magic_quotes_runtime() function ---FILE-- - -===DONE=== ---EXPECTF-- -Simple testcase for get_magic_quotes_runtime() function -bool(false) - --- Error cases -- - -Warning: get_magic_quotes_runtime() expects exactly 0 parameters, 1 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_resource_type_error.phpt b/ext/standard/tests/general_functions/get_resource_type_error.phpt deleted file mode 100644 index fd8fce6e53..0000000000 --- a/ext/standard/tests/general_functions/get_resource_type_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test get_resource_type() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing get_resource_type() : error conditions *** - --- Testing get_resource_type() function with Zero arguments -- - -Warning: get_resource_type() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing get_resource_type() function with more than expected no. of arguments -- - -Warning: get_resource_type() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt b/ext/standard/tests/general_functions/get_resource_type_variation1.phpt deleted file mode 100644 index b5f33e1830..0000000000 --- a/ext/standard/tests/general_functions/get_resource_type_variation1.phpt +++ /dev/null @@ -1,74 +0,0 @@ ---TEST-- -Test get_resource_type() function : usage variations - different data types as handle arg ---FILE-- -true, - "int 10"=>10, - "float 10.5"=>10.5, - "string"=>"Hello World", - "array"=>array(1,2,3,4,5), - "NULL"=>NULL, - "Object"=>new Hello() -); - -foreach($vars as $variation =>$object) { - echo "\n-- $variation --\n"; - var_dump(get_resource_type($object)); -}; - -?> -===DONE=== ---EXPECTF-- -*** Testing get_resource_type() : variation test *** - --- bool -- - -Warning: get_resource_type() expects parameter 1 to be resource, bool given in %s on line %d -NULL - --- int 10 -- - -Warning: get_resource_type() expects parameter 1 to be resource, int given in %s on line %d -NULL - --- float 10.5 -- - -Warning: get_resource_type() expects parameter 1 to be resource, float given in %s on line %d -NULL - --- string -- - -Warning: get_resource_type() expects parameter 1 to be resource, string given in %s on line %d -NULL - --- array -- - -Warning: get_resource_type() expects parameter 1 to be resource, array given in %s on line %d -NULL - --- NULL -- - -Warning: get_resource_type() expects parameter 1 to be resource, null given in %s on line %d -NULL - --- Object -- - -Warning: get_resource_type() expects parameter 1 to be resource, object given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/getrusage_error.phpt b/ext/standard/tests/general_functions/getrusage_error.phpt deleted file mode 100644 index 66deb91a31..0000000000 --- a/ext/standard/tests/general_functions/getrusage_error.phpt +++ /dev/null @@ -1,70 +0,0 @@ ---TEST-- -Test getrusage() function : error conditions - incorrect number of args ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing getrusage() : error conditions *** - --- Testing getrusage() function with more than expected no. of arguments -- - -Warning: getrusage() expects at most 1 parameter, 2 given in %s on line %d - --- Testing getrusage() function with invalid argument - non-numeric STRING-- - -Warning: getrusage() expects parameter 1 to be int, string given in %s on line %d - --- Testing getrusage() function with invalid argument - ARRAY-- - -Warning: getrusage() expects parameter 1 to be int, array given in %s on line %d - --- Testing getrusage() function with invalid argument - OBJECT -- - -Warning: getrusage() expects parameter 1 to be int, object given in %s on line %d - --- Testing getrusage() function with invalid argument - RESOURCE -- - -Warning: getrusage() expects parameter 1 to be int, resource given in %s on line %d -===DONE=== diff --git a/ext/standard/tests/general_functions/getservbyname_error.phpt b/ext/standard/tests/general_functions/getservbyname_error.phpt deleted file mode 100644 index ec9b7795a5..0000000000 --- a/ext/standard/tests/general_functions/getservbyname_error.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Test function getservbyname() by calling it more than or less than its expected arguments ---CREDITS-- -Italian PHP TestFest 2009 Cesena 19-20-21 june -Fabio Fabbrucci (fabbrucci@grupporetina.com) -Michele Orselli (mo@ideato.it) -Danilo Sanchi (sanchi@grupporetina.com) ---FILE-- - ---EXPECTF-- -Warning: getservbyname() expects exactly 2 parameters, %d given in %s on line %d -NULL - -Warning: getservbyname() expects exactly 2 parameters, %d given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/getservbyname_variation1.phpt b/ext/standard/tests/general_functions/getservbyname_variation1.phpt deleted file mode 100644 index 7dd01aab36..0000000000 --- a/ext/standard/tests/general_functions/getservbyname_variation1.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test function getservbyname() by substituting argument 1 with array values. ---FILE-- - 'one', 2 => 'two'); - -$variation_array = array( - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - ); - - -foreach ( $variation_array as $var ) { - var_dump(getservbyname( $var , $protocol ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with array values *** - -Warning: getservbyname() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 1 to be string, array given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/getservbyname_variation13.phpt b/ext/standard/tests/general_functions/getservbyname_variation13.phpt deleted file mode 100644 index 8dad8cda55..0000000000 --- a/ext/standard/tests/general_functions/getservbyname_variation13.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test function getservbyname() by substituting argument 2 with object values. ---FILE-- - new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -foreach ( $variation_array as $var ) { - var_dump(getservbyname( $service, $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 2 with object values *** -bool(false) - -Warning: getservbyname() expects parameter 2 to be string, object given in %s.php on line %d -NULL diff --git a/ext/standard/tests/general_functions/getservbyname_variation6.phpt b/ext/standard/tests/general_functions/getservbyname_variation6.phpt deleted file mode 100644 index 0dfafa6229..0000000000 --- a/ext/standard/tests/general_functions/getservbyname_variation6.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test function getservbyname() by substituting argument 1 with object values. ---FILE-- - new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -foreach ( $variation_array as $var ) { - var_dump(getservbyname( $var , $protocol ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with object values *** -bool(false) - -Warning: getservbyname() expects parameter 1 to be string, object given in %s.php on line %d -NULL diff --git a/ext/standard/tests/general_functions/getservbyname_variation8.phpt b/ext/standard/tests/general_functions/getservbyname_variation8.phpt deleted file mode 100644 index 69d1d77b6a..0000000000 --- a/ext/standard/tests/general_functions/getservbyname_variation8.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test function getservbyname() by substituting argument 2 with array values. ---FILE-- - 'one', 2 => 'two'); - -$variation_array = array( - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - ); - - -foreach ( $variation_array as $var ) { - var_dump(getservbyname( $service, $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 2 with array values *** - -Warning: getservbyname() expects parameter 2 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 2 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 2 to be string, array given in %s on line %d -NULL - -Warning: getservbyname() expects parameter 2 to be string, array given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/getservbyport_error.phpt b/ext/standard/tests/general_functions/getservbyport_error.phpt deleted file mode 100644 index 7d4107cedf..0000000000 --- a/ext/standard/tests/general_functions/getservbyport_error.phpt +++ /dev/null @@ -1,21 +0,0 @@ ---TEST-- -Test function getservbyport() by calling it more than or less than its expected arguments ---CREDITS-- -Italian PHP TestFest 2009 Cesena 19-20-21 june -Fabio Fabbrucci (fabbrucci@grupporetina.com) -Michele Orselli (mo@ideato.it) -Simone Gentili (sensorario@gmail.com) ---FILE-- - ---EXPECTF-- -Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d -NULL - -Warning: getservbyport() expects exactly 2 parameters, %d given in %s on line %d -NULL diff --git a/ext/standard/tests/general_functions/is_callable_error.phpt b/ext/standard/tests/general_functions/is_callable_error.phpt deleted file mode 100644 index 1e9e3b7fde..0000000000 --- a/ext/standard/tests/general_functions/is_callable_error.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Test is_callable() function ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing error conditions *** - --- Testing is_callable() function with less than expected no. of arguments -- - -Warning: is_callable() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing is_callable() function with more than expected no. of arguments -- - -Warning: is_callable() expects at most 3 parameters, 4 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/general_functions/is_resource_error.phpt b/ext/standard/tests/general_functions/is_resource_error.phpt deleted file mode 100644 index b90f8a26e1..0000000000 --- a/ext/standard/tests/general_functions/is_resource_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test is_resource() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing is_resource() : error conditions *** - --- Testing is_resource() function with Zero arguments -- - -Warning: is_resource() expects exactly 1 parameter, 0 given in %s on line %d -bool(false) - --- Testing is_resource() function with more than expected no. of arguments -- - -Warning: is_resource() expects exactly 1 parameter, 2 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/general_functions/proc_nice_error.phpt b/ext/standard/tests/general_functions/proc_nice_error.phpt deleted file mode 100644 index a05a18263e..0000000000 --- a/ext/standard/tests/general_functions/proc_nice_error.phpt +++ /dev/null @@ -1,28 +0,0 @@ ---TEST-- -Test function proc_nice() by calling it more than or less than its expected arguments ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Test by calling method or function with incorrect numbers of arguments *** - -Warning: proc_nice() expects exactly 1 parameter, 2 given in %s line %d -bool(false) - -Warning: proc_nice() expects exactly 1 parameter, 0 given in %s line %d -bool(false) diff --git a/ext/standard/tests/general_functions/proc_nice_variation1.phpt b/ext/standard/tests/general_functions/proc_nice_variation1.phpt deleted file mode 100644 index 4aa4b47801..0000000000 --- a/ext/standard/tests/general_functions/proc_nice_variation1.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -Test function proc_nice() by substituting argument 1 with array values. ---CREDITS-- -Italian PHP TestFest 2009 Cesena 19-20-21 june -Fabio Fabbrucci (fabbrucci@grupporetina.com) -Michele Orselli (mo@ideato.it) -Simone Gentili (sensorario@gmail.com) ---SKIPIF-- - ---FILE-- - 'one', 2 => 'two'); - -$variation_array = array( - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - ); - - -foreach ( $variation_array as $var ) { - var_dump(proc_nice( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with array values *** - -Warning: proc_nice() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, array given in %s on line %d -bool(false) diff --git a/ext/standard/tests/general_functions/proc_nice_variation7.phpt b/ext/standard/tests/general_functions/proc_nice_variation7.phpt deleted file mode 100644 index 368d2b1079..0000000000 --- a/ext/standard/tests/general_functions/proc_nice_variation7.phpt +++ /dev/null @@ -1,49 +0,0 @@ ---TEST-- -Test function proc_nice() by substituting argument 1 with string values. ---CREDITS-- -Italian PHP TestFest 2009 Cesena 19-20-21 june -Fabio Fabbrucci (fabbrucci@grupporetina.com) -Michele Orselli (mo@ideato.it) -Simone Gentili (sensorario@gmail.com) ---SKIPIF-- - ---FILE-- - "string", - 'string SQ' => 'string', - 'mixed case string' => "sTrInG", - 'heredoc' => $heredoc, - ); - - -foreach ( $variation_array as $var ) { - var_dump(proc_nice( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with string values *** - -Warning: proc_nice() expects parameter 1 to be int, string given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, string given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, string given in %s on line %d -bool(false) - -Warning: proc_nice() expects parameter 1 to be int, string given in %s on line %d -bool(false) diff --git a/ext/standard/tests/general_functions/uniqid_error.phpt b/ext/standard/tests/general_functions/uniqid_error.phpt deleted file mode 100644 index 4a56234bec..0000000000 --- a/ext/standard/tests/general_functions/uniqid_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test uniqid() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing uniqid() : error conditions *** - --- Testing uniqid() function with more than expected no. of arguments -- - -Warning: uniqid() expects at most 2 parameters, 3 given in %s on line %d -NULL - --- Testing uniqid() function with invalid values for $prefix -- - -Warning: uniqid() expects parameter 1 to be string, array given in %s on line %d - -Warning: uniqid() expects parameter 1 to be string, resource given in %s on line %d - -Warning: uniqid() expects parameter 1 to be string, object given in %s on line %d -===DONE=== diff --git a/ext/standard/tests/general_functions/var_export_error1.phpt b/ext/standard/tests/general_functions/var_export_error1.phpt deleted file mode 100644 index ffa542c053..0000000000 --- a/ext/standard/tests/general_functions/var_export_error1.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test var_export() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing var_export() : error conditions *** - --- Testing var_export() function with Zero arguments -- - -Warning: var_export() expects at least 1 parameter, 0 given in %s on line 12 -NULL - --- Testing var_export() function with more than expected no. of arguments -- - -Warning: var_export() expects at most 2 parameters, 3 given in %s on line 19 -NULL -===DONE=== diff --git a/ext/standard/tests/strings/addcslashes_004.phpt b/ext/standard/tests/strings/addcslashes_004.phpt deleted file mode 100644 index a787845506..0000000000 --- a/ext/standard/tests/strings/addcslashes_004.phpt +++ /dev/null @@ -1,30 +0,0 @@ ---TEST-- -Test addcslashes() function (errors) ---INI-- -precision=14 ---FILE-- - ---EXPECTF-- -*** Testing error conditions *** - -Warning: addcslashes() expects exactly 2 parameters, 0 given in %s on line %d -NULL - -Warning: addcslashes() expects exactly 2 parameters, 1 given in %s on line %d -NULL - -Warning: addcslashes() expects exactly 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/addslashes_error.phpt b/ext/standard/tests/strings/addslashes_error.phpt deleted file mode 100644 index c5d67c09ae..0000000000 --- a/ext/standard/tests/strings/addslashes_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test addslashes() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing addslashes() : error conditions *** - --- Testing addslashes() function with Zero arguments -- - -Warning: addslashes() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing addslashes() function with more than expected no. of arguments -- - -Warning: addslashes() expects exactly 1 parameter, 2 given in %s on line %d -NULL -string(15) ""hello"\"world"" -Done diff --git a/ext/standard/tests/strings/basename_error.phpt b/ext/standard/tests/strings/basename_error.phpt deleted file mode 100644 index 8309c3578b..0000000000 --- a/ext/standard/tests/strings/basename_error.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---TEST-- -Test basename() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing error conditions *** - -Warning: basename() expects at least 1 parameter, 0 given in %s on line %d -NULL - -Warning: basename() expects at most 2 parameters, 3 given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string, array given in %s on line %d -NULL - -Warning: basename() expects parameter 2 to be string, array given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: basename() expects parameter 1 to be string, object given in %s on line %d -NULL - -Warning: basename() expects parameter 2 to be string, object given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/bin2hex_error.phpt b/ext/standard/tests/strings/bin2hex_error.phpt deleted file mode 100644 index efee90bdee..0000000000 --- a/ext/standard/tests/strings/bin2hex_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test bin2hex() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing bin2hex() : error conditions *** - --- Testing bin2hex() function with no arguments -- - -Warning: bin2hex() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing bin2hex() function with more than expected no. of arguments -- - -Warning: bin2hex() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/chop_error.phpt b/ext/standard/tests/strings/chop_error.phpt deleted file mode 100644 index 2f2656f3aa..0000000000 --- a/ext/standard/tests/strings/chop_error.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -Test chop() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing chop() : error conditions *** - --- Testing chop() function with Zero arguments -- - -Warning: chop() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing chop() function with more than expected no. of arguments -- - -Warning: chop() expects at most 2 parameters, 3 given in %s on line %d -NULL -string(11) "string_val " -Done diff --git a/ext/standard/tests/strings/chunk_split_error.phpt b/ext/standard/tests/strings/chunk_split_error.phpt deleted file mode 100644 index d8a72586af..0000000000 --- a/ext/standard/tests/strings/chunk_split_error.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test chunk_split() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing chunk_split() : error conditions *** --- Testing chunk_split() function with Zero arguments -- -Warning: chunk_split() expects at least 1 parameter, 0 given in %s on line %d -NULL --- Testing chunk_split() function with more than expected no. of arguments -- -Warning: chunk_split() expects at most 3 parameters, 4 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/convert_uudecode_error.phpt b/ext/standard/tests/strings/convert_uudecode_error.phpt deleted file mode 100644 index 77ac18b50b..0000000000 --- a/ext/standard/tests/strings/convert_uudecode_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test convert_uudecode() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing convert_uudecode() : error conditions *** - --- Testing convert_uudecode() function with no arguments -- - -Warning: convert_uudecode() expects exactly 1 parameter, 0 given in %s on line %d -bool(false) - --- Testing convert_uudecode() function with more than expected no. of arguments -- - -Warning: convert_uudecode() expects exactly 1 parameter, 2 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/strings/convert_uuencode_error.phpt b/ext/standard/tests/strings/convert_uuencode_error.phpt deleted file mode 100644 index ec4d3f6477..0000000000 --- a/ext/standard/tests/strings/convert_uuencode_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test convert_uuencode() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing convert_uuencode() : error conditions *** - --- Testing chconvert_uuencoder() function with no arguments -- - -Warning: convert_uuencode() expects exactly 1 parameter, 0 given in %s on line %d -bool(false) - --- Testing convert_uuencode() function with more than expected no. of arguments -- - -Warning: convert_uuencode() expects exactly 1 parameter, 2 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/strings/count_chars_error.phpt b/ext/standard/tests/strings/count_chars_error.phpt deleted file mode 100644 index f87b6e532e..0000000000 --- a/ext/standard/tests/strings/count_chars_error.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -Test count_chars() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing count_chars() : error conditions *** - --- Testing count_chars() function with no arguments -- - -Warning: count_chars() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing count_chars() function with more than expected no. of arguments -- - -Warning: count_chars() expects at most 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/crc32_error.phpt b/ext/standard/tests/strings/crc32_error.phpt deleted file mode 100644 index 98680cde34..0000000000 --- a/ext/standard/tests/strings/crc32_error.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Test crc32() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing crc32() : error conditions *** - --- Testing crc32() function with Zero arguments -- - -Warning: crc32() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing crc32() function with more than expected no. of arguments -- - -Warning: crc32() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/explode_error.phpt b/ext/standard/tests/strings/explode_error.phpt deleted file mode 100644 index d86e1edb1f..0000000000 --- a/ext/standard/tests/strings/explode_error.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test explode() function : error conditions ---FILE-- - -===Done=== ---EXPECTF-- -*** Testing explode() : error conditions *** - --- Testing explode() function with no arguments -- - -Warning: explode() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing explode() function with more than expected no. of arguments -- - -Warning: explode() expects at most 3 parameters, 4 given in %s on line %d -NULL -===Done=== diff --git a/ext/standard/tests/strings/get_html_translation_table_error.phpt b/ext/standard/tests/strings/get_html_translation_table_error.phpt deleted file mode 100644 index 5adfe98478..0000000000 --- a/ext/standard/tests/strings/get_html_translation_table_error.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -Test get_html_translation_table() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing get_html_translation_table() : error conditions *** - --- Testing get_html_translation_table() function with more than expected no. of arguments -- - -Warning: get_html_translation_table() expects at most 3 parameters, 4 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/hebrev_error.phpt b/ext/standard/tests/strings/hebrev_error.phpt deleted file mode 100644 index a04e519db5..0000000000 --- a/ext/standard/tests/strings/hebrev_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test hebrev() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing hebrev() : error conditions *** - --- Testing hebrev() function with no arguments -- - -Warning: hebrev() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing hebrev() function with more than expected no. of arguments -- - -Warning: hebrev() expects at most 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/hebrevc_error.phpt b/ext/standard/tests/strings/hebrevc_error.phpt deleted file mode 100644 index 630c995b18..0000000000 --- a/ext/standard/tests/strings/hebrevc_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test hebrevc() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing hebrevc() : error conditions *** - --- Testing hebrevc() function with no arguments -- - -Warning: hebrevc() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing hebrevc() function with more than expected no. of arguments -- - -Warning: hebrevc() expects at most 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/htmlspecialchars_decode_error.phpt b/ext/standard/tests/strings/htmlspecialchars_decode_error.phpt deleted file mode 100644 index 36b8e6bbec..0000000000 --- a/ext/standard/tests/strings/htmlspecialchars_decode_error.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test htmlspecialchars_decode() function : error conditions ---FILE-- -hello & > < " ' world"; -$quote_style = ENT_COMPAT; -$extra_arg = 10; -var_dump( htmlspecialchars_decode($string, $quote_style, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing htmlspecialchars_decode() : error conditions *** - --- Testing htmlspecialchars_decode() function with Zero arguments -- - -Warning: htmlspecialchars_decode() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing htmlspecialchars_decode() function with more than expected no. of arguments -- - -Warning: htmlspecialchars_decode() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/http_build_query_error.phpt b/ext/standard/tests/strings/http_build_query_error.phpt deleted file mode 100644 index 2975d2d723..0000000000 --- a/ext/standard/tests/strings/http_build_query_error.phpt +++ /dev/null @@ -1,13 +0,0 @@ ---TEST-- -Testing error on null parameter 1 of http_build_query() ---CREDITS-- -Pawel Krynicki -#testfest AmsterdamPHP 2012-06-23 ---FILE-- - ---EXPECTF-- -Warning: http_build_query() expects parameter 1 to be array, null given in %s on line %d diff --git a/ext/standard/tests/strings/md5_error.phpt b/ext/standard/tests/strings/md5_error.phpt deleted file mode 100644 index 138df1b8bd..0000000000 --- a/ext/standard/tests/strings/md5_error.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -Test md5() function : error conditions ---FILE-- - -===DONE== ---EXPECTF-- -*** Testing md5() : error conditions *** - --- Testing md5() function with no arguments -- - -Warning: md5() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing md5() function with more than expected no. of arguments -- - -Warning: md5() expects at most 2 parameters, 3 given in %s on line %d -NULL -===DONE== diff --git a/ext/standard/tests/strings/nl2br_error.phpt b/ext/standard/tests/strings/nl2br_error.phpt deleted file mode 100644 index b40e7b16a5..0000000000 --- a/ext/standard/tests/strings/nl2br_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test nl2br() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing nl2br() : error conditions *** - --- Testing nl2br() function with Zero arguments -- -Warning: nl2br() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing nl2br() function with more than expected no. of arguments -- -Warning: nl2br() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/nl_langinfo_error1.phpt b/ext/standard/tests/strings/nl_langinfo_error1.phpt deleted file mode 100644 index c8f3a284bf..0000000000 --- a/ext/standard/tests/strings/nl_langinfo_error1.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test nl_langinfo() function : error conditions ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing nl_langinfo() : error conditions *** - --- Testing nl_langinfo() function with no arguments -- - -Warning: nl_langinfo() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing nl_langinfo() function with more than expected no. of arguments -- - -Warning: nl_langinfo() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/nl_langinfo_variation1.phpt b/ext/standard/tests/strings/nl_langinfo_variation1.phpt deleted file mode 100644 index 180991e400..0000000000 --- a/ext/standard/tests/strings/nl_langinfo_variation1.phpt +++ /dev/null @@ -1,104 +0,0 @@ ---TEST-- -Test nl_langinfo() function : unexpected inputs for '$tem' argument ---SKIPIF-- - ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing nl_langinfo() : with unexpected inputs for 'item' argument *** --- Iteration 1 -- - -Warning: nl_langinfo(): Item '2147483647' is not valid in %s on line %d -bool(false) --- Iteration 2 -- - -Warning: nl_langinfo(): Item '-2147483648' is not valid in %s on line %d -bool(false) --- Iteration 3 -- - -Warning: nl_langinfo(): Item '-20' is not valid in %s on line %d -bool(false) --- Iteration 4 -- - -Warning: nl_langinfo() expects parameter 1 to be int, array given in %s on line %d -NULL --- Iteration 5 -- - -Warning: nl_langinfo() expects parameter 1 to be int, array given in %s on line %d -NULL --- Iteration 6 -- - -Warning: nl_langinfo() expects parameter 1 to be int, array given in %s on line %d -NULL --- Iteration 7 -- - -Warning: nl_langinfo() expects parameter 1 to be int, object given in %s on line %d -NULL --- Iteration 8 -- - -Warning: nl_langinfo() expects parameter 1 to be int, resource given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/number_format_error.phpt b/ext/standard/tests/strings/number_format_error.phpt deleted file mode 100644 index 933466d12b..0000000000 --- a/ext/standard/tests/strings/number_format_error.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test number_format() - wrong params test number_format() ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing number_format() : error conditions *** - --- Testing number_format() function with less than expected no. of arguments -- - -Warning: number_format() expects at least 1 parameter, 0 given in %s on line %d - --- Testing number_format() function with 3 arguments -- - -Warning: Wrong parameter count for number_format() in %s on line %d - --- Testing number_format() function with more than 4 arguments -- - -Warning: number_format() expects at most 4 parameters, 5 given in %s on line %d -===DONE=== diff --git a/ext/standard/tests/strings/ord_error.phpt b/ext/standard/tests/strings/ord_error.phpt deleted file mode 100644 index 455fb38972..0000000000 --- a/ext/standard/tests/strings/ord_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test ord() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing ord() : error conditions *** - --- Testing ord() function with no arguments -- - -Warning: ord() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing ord() function with more than expected no. of arguments -- - -Warning: ord() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/parse_str_error1.phpt b/ext/standard/tests/strings/parse_str_error1.phpt deleted file mode 100644 index 9683a7d901..0000000000 --- a/ext/standard/tests/strings/parse_str_error1.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Test parse_str() function : non-default arg_separator.input specified ---INI-- -arg_separator.input = "/" ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing parse_str() : error conditions *** - --- Testing htmlentities() function with less than expected no. of arguments -- - -Warning: parse_str() expects at least 1 parameter, 0 given in %s on line %d - --- Testing htmlentities() function with more than expected no. of arguments -- - -Warning: parse_str() expects at most 2 parameters, 3 given in %s on line %d -===DONE=== diff --git a/ext/standard/tests/strings/quoted_printable_decode_error.phpt b/ext/standard/tests/strings/quoted_printable_decode_error.phpt deleted file mode 100644 index 9008f5c861..0000000000 --- a/ext/standard/tests/strings/quoted_printable_decode_error.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test quoted_printable_decode() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing quoted_printable_decode() : error conditions *** - --- Testing quoted_printable_decode() function with no arguments -- - -Warning: quoted_printable_decode() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing quoted_printable_decode() function with more than expected no. of arguments -- - -Warning: quoted_printable_decode() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/quotemeta_error.phpt b/ext/standard/tests/strings/quotemeta_error.phpt deleted file mode 100644 index a4284eca55..0000000000 --- a/ext/standard/tests/strings/quotemeta_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test quotemeta() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing quotemeta() : error conditions *** - --- Testing quotemeta() function with no arguments -- - -Warning: quotemeta() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing quotemeta() function with more than expected no. of arguments -- - -Warning: quotemeta() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/sha1_error.phpt b/ext/standard/tests/strings/sha1_error.phpt deleted file mode 100644 index 193c64e941..0000000000 --- a/ext/standard/tests/strings/sha1_error.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -Test sha1() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing sha1() : error conditions *** - --- Testing sha1() function with no arguments -- - -Warning: sha1() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing sha1() function with more than expected no. of arguments -- - -Warning: sha1() expects at most 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/similar_text_error.phpt b/ext/standard/tests/strings/similar_text_error.phpt deleted file mode 100644 index a5e9501337..0000000000 --- a/ext/standard/tests/strings/similar_text_error.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -similar_text(), error tests for missing parameters ---CREDITS-- -Mats Lindh -#Testfest php.no ---FILE-- - -===DONE=== ---EXPECTF-- --- Testing similar_text() function with more than expected no. of arguments -- - -Warning: similar_text() expects at most 3 parameters, 4 given in %s on line %d - --- Testing similar_text() function with less than expected no. of arguments -- - -Warning: similar_text() expects at least 2 parameters, 1 given in %s on line %d -===DONE=== diff --git a/ext/standard/tests/strings/soundex_error.phpt b/ext/standard/tests/strings/soundex_error.phpt deleted file mode 100644 index 8ff93b6d70..0000000000 --- a/ext/standard/tests/strings/soundex_error.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Test soundex() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing soundex error conditions ***-- Testing soundex() function with Zero arguments -- - -Warning: soundex() expects exactly 1 parameter, 0 given in %s on line %d -NULL - - --- Testing soundex() function with more than expected no. of arguments -- - -Warning: soundex() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/sscanf_variation1.phpt b/ext/standard/tests/strings/sscanf_variation1.phpt deleted file mode 100644 index cb5cdc754a..0000000000 --- a/ext/standard/tests/strings/sscanf_variation1.phpt +++ /dev/null @@ -1,169 +0,0 @@ ---TEST-- -Test sscanf() function : usage variations - unexpected inputs for '$str' argument ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing sscanf() function: with unexpected inputs for 'str' argument *** --- Iteration 1 -- -array(1) { - [0]=> - string(1) "0" -} --- Iteration 2 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 3 -- -array(1) { - [0]=> - string(2) "-2" -} --- Iteration 4 -- -array(1) { - [0]=> - string(10) "2147483647" -} --- Iteration 5 -- -array(1) { - [0]=> - string(11) "-2147483648" -} --- Iteration 6 -- -array(1) { - [0]=> - string(4) "10.5" -} --- Iteration 7 -- -array(1) { - [0]=> - string(5) "-20.5" -} --- Iteration 8 -- -array(1) { - [0]=> - string(12) "101234567000" -} --- Iteration 9 -- - -Warning: sscanf() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 10 -- - -Warning: sscanf() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: sscanf() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 12 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 13 -- -NULL --- Iteration 14 -- -array(1) { - [0]=> - string(1) "1" -} --- Iteration 15 -- -NULL --- Iteration 16 -- -NULL --- Iteration 17 -- -NULL --- Iteration 18 -- -array(1) { - [0]=> - string(6) "sample" -} --- Iteration 19 -- - -Warning: sscanf() expects parameter 1 to be string, resource given in %s on line %d -NULL --- Iteration 20 -- -NULL --- Iteration 21 -- -NULL -===DONE=== diff --git a/ext/standard/tests/strings/sscanf_variation2.phpt b/ext/standard/tests/strings/sscanf_variation2.phpt deleted file mode 100644 index dede6e8d98..0000000000 --- a/ext/standard/tests/strings/sscanf_variation2.phpt +++ /dev/null @@ -1,153 +0,0 @@ ---TEST-- -Test sscanf() function : usage variations - unexpected inputs for '$format' argument ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing sscanf() function: with unexpected inputs for 'format' argument *** --- Iteration 1 -- -array(0) { -} --- Iteration 2 -- -array(0) { -} --- Iteration 3 -- -array(0) { -} --- Iteration 4 -- -array(0) { -} --- Iteration 5 -- -array(0) { -} --- Iteration 6 -- -array(0) { -} --- Iteration 7 -- -array(0) { -} --- Iteration 8 -- -array(0) { -} --- Iteration 9 -- - -Warning: sscanf() expects parameter 2 to be string, array given in %s on line %d -NULL --- Iteration 10 -- - -Warning: sscanf() expects parameter 2 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: sscanf() expects parameter 2 to be string, array given in %s on line %d -NULL --- Iteration 12 -- -array(0) { -} --- Iteration 13 -- -array(0) { -} --- Iteration 14 -- -array(0) { -} --- Iteration 15 -- -array(0) { -} --- Iteration 16 -- -array(0) { -} --- Iteration 17 -- -array(0) { -} --- Iteration 18 -- -array(0) { -} --- Iteration 19 -- - -Warning: sscanf() expects parameter 2 to be string, resource given in %s on line %d -NULL --- Iteration 20 -- -array(0) { -} --- Iteration 21 -- -array(0) { -} -===DONE=== diff --git a/ext/standard/tests/strings/str_replace_error.phpt b/ext/standard/tests/strings/str_replace_error.phpt deleted file mode 100644 index c2d1d4fe2b..0000000000 --- a/ext/standard/tests/strings/str_replace_error.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Test str_replace() function error conditions ---INI-- -precision=14 ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing str_replace error conditions *** -Warning: str_replace() expects at least 3 parameters, 0 given in %sstr_replace_error.php on line 12 -NULL - -Warning: str_replace() expects at least 3 parameters, 1 given in %sstr_replace_error.php on line 13 -NULL - -Warning: str_replace() expects at least 3 parameters, 1 given in %sstr_replace_error.php on line 14 -NULL - -Warning: str_replace() expects at least 3 parameters, 2 given in %sstr_replace_error.php on line 15 -NULL - -Warning: str_replace() expects at most 4 parameters, 5 given in %sstr_replace_error.php on line 16 -NULL -===DONE=== diff --git a/ext/standard/tests/strings/str_rot13_error.phpt b/ext/standard/tests/strings/str_rot13_error.phpt deleted file mode 100644 index ee0ea4165e..0000000000 --- a/ext/standard/tests/strings/str_rot13_error.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Test str_rot13() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing str_rot13() : error conditions *** --- Testing str_rot13() function with Zero arguments -- - -Warning: str_rot13() expects exactly 1 parameter, 0 given in %s on line %d -NULL - - --- Testing str_rot13() function with more than expected no. of arguments -- - -Warning: str_rot13() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/str_shuffle_error.phpt b/ext/standard/tests/strings/str_shuffle_error.phpt deleted file mode 100644 index 46911407f0..0000000000 --- a/ext/standard/tests/strings/str_shuffle_error.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Test str_shuffle() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing str_shuffle() : error conditions *** - --- Testing str_shuffle() function with no arguments -- - -Warning: str_shuffle() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing str_shuffle() function with more than expected no. of arguments -- - -Warning: str_shuffle() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/str_split_error.phpt b/ext/standard/tests/strings/str_split_error.phpt deleted file mode 100644 index 1a4558e680..0000000000 --- a/ext/standard/tests/strings/str_split_error.phpt +++ /dev/null @@ -1,38 +0,0 @@ ---TEST-- -Test str_split() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing str_split() : error conditions *** --- Testing str_split() function with Zero arguments -- - -Warning: str_split() expects at least 1 parameter, 0 given in %s on line %d -NULL --- Testing str_split() function with more than expected no. of arguments -- - -Warning: str_split() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strcoll_error.phpt b/ext/standard/tests/strings/strcoll_error.phpt deleted file mode 100644 index 56466bb63e..0000000000 --- a/ext/standard/tests/strings/strcoll_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test strcoll() function : error conditions ---SKIPIF-- - ---FILE-- - -===Done=== ---EXPECTF-- -*** Testing strcoll() : error conditions *** - --- Testing strcoll() function with no arguments -- - -Warning: strcoll() expects exactly 2 parameters, 0 given in %s on line %d -NULL - -Warning: strcoll() expects exactly 2 parameters, 1 given in %s on line %d -NULL - --- Testing strcoll() function with one argument -- - -Warning: strcoll() expects exactly 2 parameters, 1 given in %s on line %d -NULL - --- Testing strcoll() function with more than expected no. of arguments -- - -Warning: strcoll() expects exactly 2 parameters, 3 given in %s on line %d -NULL -===Done=== diff --git a/ext/standard/tests/strings/strcspn_error.phpt b/ext/standard/tests/strings/strcspn_error.phpt deleted file mode 100644 index ebb7f9f0d0..0000000000 --- a/ext/standard/tests/strings/strcspn_error.phpt +++ /dev/null @@ -1,57 +0,0 @@ ---TEST-- -Test strcspn() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strcspn() : error conditions *** - --- Testing strcspn() function with Zero arguments -- - -Warning: strcspn() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing strcspn() function with more than expected no. of arguments -- - -Warning: strcspn() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing strcspn() function with less than expected no. of arguments -- - -Warning: strcspn() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strip_tags_error.phpt b/ext/standard/tests/strings/strip_tags_error.phpt deleted file mode 100644 index 25f703c3c0..0000000000 --- a/ext/standard/tests/strings/strip_tags_error.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test strip_tags() function : error conditions ---INI-- -short_open_tag = on ---FILE-- -hello"; -$allowable_tags = ""; -$extra_arg = 10; -var_dump( strip_tags($str, $allowable_tags, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing strip_tags() : error conditions *** - --- Testing strip_tags() function with Zero arguments -- - -Warning: strip_tags() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing strip_tags() function with more than expected no. of arguments -- - -Warning: strip_tags() expects at most 2 parameters, 3 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/stripcslashes_error.phpt b/ext/standard/tests/strings/stripcslashes_error.phpt deleted file mode 100644 index 174da56443..0000000000 --- a/ext/standard/tests/strings/stripcslashes_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test stripcslashes() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing stripcslashes() : unexpected number of arguments *** --- Testing stripcslashes() function with no arguments -- - -Warning: stripcslashes() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing stripcslashes() function with more than expected no. of arguments -- - -Warning: stripcslashes() expects exactly 1 parameter, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/stripos_variation15.phpt b/ext/standard/tests/strings/stripos_variation15.phpt deleted file mode 100644 index f8d4f029fe..0000000000 --- a/ext/standard/tests/strings/stripos_variation15.phpt +++ /dev/null @@ -1,185 +0,0 @@ ---TEST-- -Test stripos() function : usage variations - unexpected inputs for 'haystack', 'needle' & 'offset' arguments ---SKIPIF-- - 'red', 'item' => 'pen'), - - // boolean values - true, - false, - TRUE, - FALSE, - - // objects - new sample(), - - // empty string - "", - '', - - // null values - NULL, - null, - - //resource - $file_handle, - - // undefined variable - @$undefined_var, - - // unset variable - @$unset_var -); - - -// loop through each element of the array and check the working of stripos() -$counter = 1; -for($index = 0; $index < count($values); $index ++) { - echo "-- Iteration $counter --\n"; - var_dump( stripos($values[$index], $values[$index], $values[$index]) ); - $counter ++; -} - -echo "*** Done ***"; -?> ---EXPECTF-- -*** Testing stripos() function with unexpected values for haystack, needle & offset *** --- Iteration 1 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 2 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 3 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 4 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 5 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 6 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 7 -- - -Warning: stripos(): Offset not contained in string in %s on line %d -bool(false) --- Iteration 8 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 9 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 10 -- - -Warning: stripos() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: stripos() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 12 -- - -Warning: stripos() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 13 -- - -Warning: stripos() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 14 -- - -Warning: stripos() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 15 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 16 -- -bool(false) --- Iteration 17 -- - -Deprecated: stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in %s on line %d -bool(false) --- Iteration 18 -- -bool(false) --- Iteration 19 -- - -Warning: stripos() expects parameter 3 to be int, object given in %s on line %d -NULL --- Iteration 20 -- - -Warning: stripos() expects parameter 3 to be int, string given in %s on line %d -NULL --- Iteration 21 -- - -Warning: stripos() expects parameter 3 to be int, string given in %s on line %d -NULL --- Iteration 22 -- -bool(false) --- Iteration 23 -- -bool(false) --- Iteration 24 -- - -Warning: stripos() expects parameter 1 to be string, resource given in %s on line %d -NULL --- Iteration 25 -- -bool(false) --- Iteration 26 -- -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/stripslashes_error.phpt b/ext/standard/tests/strings/stripslashes_error.phpt deleted file mode 100644 index 81b9889fc4..0000000000 --- a/ext/standard/tests/strings/stripslashes_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test stripslashes() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing stripslashes() : error conditions *** - --- Testing stripslashes() function with Zero arguments -- - -Warning: stripslashes() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing stripslashes() function with more than expected no. of arguments -- - -Warning: stripslashes() expects exactly 1 parameter, 2 given in %s on line %d -NULL -string(18) "\"hello\"\"world\"" -Done diff --git a/ext/standard/tests/strings/strlen_variation1.phpt b/ext/standard/tests/strings/strlen_variation1.phpt deleted file mode 100644 index f1d6b6b978..0000000000 --- a/ext/standard/tests/strings/strlen_variation1.phpt +++ /dev/null @@ -1,137 +0,0 @@ ---TEST-- -Test strlen() function : usage variations - unexpected input for '$string' argument ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing strlen() : with unexpected input for 'string' argument *** --- Iteration 1 -- -int(1) --- Iteration 2 -- -int(1) --- Iteration 3 -- -int(2) --- Iteration 4 -- -int(10) --- Iteration 5 -- -int(11) --- Iteration 6 -- -int(4) --- Iteration 7 -- -int(5) --- Iteration 8 -- -int(12) --- Iteration 9 -- - -Warning: strlen() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 10 -- - -Warning: strlen() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 11 -- - -Warning: strlen() expects parameter 1 to be string, array given in %s on line %d -NULL --- Iteration 12 -- -int(1) --- Iteration 13 -- -int(0) --- Iteration 14 -- -int(1) --- Iteration 15 -- -int(0) --- Iteration 16 -- -int(0) --- Iteration 17 -- -int(0) --- Iteration 18 -- -int(13) --- Iteration 19 -- - -Warning: strlen() expects parameter 1 to be string, resource given in %s on line %d -NULL --- Iteration 20 -- -int(0) --- Iteration 21 -- -int(0) -===DONE=== diff --git a/ext/standard/tests/strings/strnatcasecmp_error.phpt b/ext/standard/tests/strings/strnatcasecmp_error.phpt deleted file mode 100644 index 6a0fca76e9..0000000000 --- a/ext/standard/tests/strings/strnatcasecmp_error.phpt +++ /dev/null @@ -1,33 +0,0 @@ ---TEST-- -Test strnatcasecmp() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing strnatcasecmp() : error conditions *** --- Testing strnatcmp() function with Zero arguments -- - -Warning: strnatcasecmp() expects exactly 2 parameters, 0 given in %s on line %d -NULL - - --- Testing strnatcasecmp() function with more than expected no. of arguments -- - -Warning: strnatcasecmp() expects exactly 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/strnatcmp_error.phpt b/ext/standard/tests/strings/strnatcmp_error.phpt deleted file mode 100644 index 2b6d93afee..0000000000 --- a/ext/standard/tests/strings/strnatcmp_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test strnatcmp() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing strnatcmp() : error conditions *** --- Testing strnatcmp() function with Zero arguments -- - -Warning: strnatcmp() expects exactly 2 parameters, 0 given in %s on line %d -NULL - - --- Testing strnatcmp() function with more than expected no. of arguments -- - -Warning: strnatcmp() expects exactly 2 parameters, 3 given in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/strrchr_error.phpt b/ext/standard/tests/strings/strrchr_error.phpt deleted file mode 100644 index de5a9d34de..0000000000 --- a/ext/standard/tests/strings/strrchr_error.phpt +++ /dev/null @@ -1,40 +0,0 @@ ---TEST-- -Test strrchr() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strrchr() function: error conditions *** - --- Testing strrchr() function with Zero arguments -- -Warning: strrchr() expects exactly 2 parameters, 0 given in %s on line %d -NULL - --- Testing strrchr() function with less than expected no. of arguments -- -Warning: strrchr() expects exactly 2 parameters, 1 given in %s on line %d -NULL - --- Testing strrchr() function with more than expected no. of arguments -- -Warning: strrchr() expects exactly 2 parameters, 3 given in %s on line %d -NULL -*** Done *** diff --git a/ext/standard/tests/strings/strrev_error.phpt b/ext/standard/tests/strings/strrev_error.phpt deleted file mode 100644 index 2bc8a228ef..0000000000 --- a/ext/standard/tests/strings/strrev_error.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test strrev() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strrev() : error conditions *** --- Testing strrev() function with Zero arguments -- -Warning: strrev() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing strrev() function with more than expected no. of arguments -- -Warning: strrev() expects exactly 1 parameter, 2 given in %s on line %d -NULL -*** Done *** diff --git a/ext/standard/tests/strings/strrpos_error.phpt b/ext/standard/tests/strings/strrpos_error.phpt deleted file mode 100644 index d97af99920..0000000000 --- a/ext/standard/tests/strings/strrpos_error.phpt +++ /dev/null @@ -1,34 +0,0 @@ ---TEST-- -Test strrpos() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strrpos() function: error conditions *** --- With Zero arguments -- -Warning: strrpos() expects at least 2 parameters, 0 given in %s on line %d -bool(false) - --- With less than expected number of arguments -- -Warning: strrpos() expects at least 2 parameters, 1 given in %s on line %d -bool(false) - --- With more than expected number of arguments -- -Warning: strrpos() expects at most 3 parameters, 4 given in %s on line %d -bool(false) -*** Done *** diff --git a/ext/standard/tests/strings/strspn_error.phpt b/ext/standard/tests/strings/strspn_error.phpt deleted file mode 100644 index 0cf88c25d2..0000000000 --- a/ext/standard/tests/strings/strspn_error.phpt +++ /dev/null @@ -1,57 +0,0 @@ ---TEST-- -Test strspn() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strspn() : error conditions *** - --- Testing strspn() function with Zero arguments -- - -Warning: strspn() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing strspn() function with more than expected no. of arguments -- - -Warning: strspn() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing strspn() function with less than expected no. of arguments -- - -Warning: strspn() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/strtok_error.phpt b/ext/standard/tests/strings/strtok_error.phpt deleted file mode 100644 index b54fbbe19b..0000000000 --- a/ext/standard/tests/strings/strtok_error.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -Test strtok() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strtok() : error conditions *** - --- Testing strtok() function with Zero arguments -- - -Warning: strtok() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing strtok() function with more than expected no. of arguments -- - -Warning: strtok() expects at most 2 parameters, 3 given in %s on line %d -NULL -string(13) "sample string" - --- Testing strtok() with less than expected no. of arguments -- -bool(false) -string(10) "string val" -Done diff --git a/ext/standard/tests/strings/strtr_error.phpt b/ext/standard/tests/strings/strtr_error.phpt deleted file mode 100644 index 0d4d157776..0000000000 --- a/ext/standard/tests/strings/strtr_error.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Test strtr() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing strtr() : error conditions *** - --- Testing strtr() function with Zero arguments -- -Warning: strtr() expects at least 2 parameters, 0 given in %s on line %d -NULL - --- Testing strtr() function with less than expected no. of arguments -- -Warning: strtr() expects at least 2 parameters, 1 given in %s on line %d -NULL - --- Testing strtr() function with more than expected no. of arguments -- -Warning: strtr() expects at most 3 parameters, 4 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/ucwords_error.phpt b/ext/standard/tests/strings/ucwords_error.phpt deleted file mode 100644 index 7ada10c629..0000000000 --- a/ext/standard/tests/strings/ucwords_error.phpt +++ /dev/null @@ -1,41 +0,0 @@ ---TEST-- -Test ucwords() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing ucwords() : error conditions *** - --- Testing ucwords() function with Zero arguments -- - -Warning: ucwords() expects at least 1 parameter, 0 given in %s on line %d -NULL - --- Testing ucwords() function with more than expected no. of arguments -- - -Warning: ucwords() expects at most 2 parameters, 3 given in %s on line %d -NULL -string(10) "string_val" -Done diff --git a/ext/standard/tests/strings/utf8_decode_error.phpt b/ext/standard/tests/strings/utf8_decode_error.phpt deleted file mode 100644 index de2ca2b80e..0000000000 --- a/ext/standard/tests/strings/utf8_decode_error.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test utf8_decode() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing utf8_decode() : error conditions *** - --- Testing utf8_decode() function with Zero arguments -- - -Warning: utf8_decode() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing utf8_decode() function with more than expected no. of arguments -- - -Warning: utf8_decode() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/utf8_encode_error.phpt b/ext/standard/tests/strings/utf8_encode_error.phpt deleted file mode 100644 index bcc9335c58..0000000000 --- a/ext/standard/tests/strings/utf8_encode_error.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -Test utf8_encode() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing utf8_encode() : error conditions *** - --- Testing utf8_encode() function with Zero arguments -- - -Warning: utf8_encode() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing utf8_encode() function with more than expected no. of arguments -- - -Warning: utf8_encode() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/standard/tests/strings/vfprintf_error2.phpt b/ext/standard/tests/strings/vfprintf_error2.phpt deleted file mode 100644 index 7da28468b3..0000000000 --- a/ext/standard/tests/strings/vfprintf_error2.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -Test vfprintf() function : error conditions (less than expected arguments) ---CREDITS-- -Felix De Vliegher ---INI-- -precision=14 ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- --- Testing vfprintf() function with less than expected no. of arguments -- - -Warning: Wrong parameter count for vfprintf() in %s on line %d -NULL - -Warning: Wrong parameter count for vfprintf() in %s on line %d -NULL - -Warning: Wrong parameter count for vfprintf() in %s on line %d -NULL -===DONE=== diff --git a/ext/standard/tests/strings/vprintf_error.phpt b/ext/standard/tests/strings/vprintf_error.phpt deleted file mode 100644 index 070b1b086c..0000000000 --- a/ext/standard/tests/strings/vprintf_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test vprintf() function : error conditions ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing vprintf() : error conditions *** - --- Testing vprintf() function with Zero arguments -- - -Warning: vprintf() expects exactly 2 parameters, 0 given in %s on line %d -bool(false) - --- Testing vprintf() function with less than expected no. of arguments -- - -Warning: vprintf() expects exactly 2 parameters, 1 given in %s on line %d -bool(false) - --- testing vprintf() function with more than expected no. of arguments -- - -Warning: vprintf() expects exactly 2 parameters, 3 given in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/strings/vsprintf_error.phpt b/ext/standard/tests/strings/vsprintf_error.phpt deleted file mode 100644 index 2fe85f09f4..0000000000 --- a/ext/standard/tests/strings/vsprintf_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test vsprintf() function : error conditions ---FILE-- - ---EXPECTF-- -*** Testing vsprintf() : error conditions *** - --- Testing vsprintf() function with Zero arguments -- - -Warning: vsprintf() expects exactly 2 parameters, 0 given in %s on line %d -bool(false) - --- Testing vsprintf() function with less than expected no. of arguments -- - -Warning: vsprintf() expects exactly 2 parameters, 1 given in %s on line %d -bool(false) - --- testing vsprintf() function with more than expected no. of arguments -- - -Warning: vsprintf() expects exactly 2 parameters, 3 given in %s on line %d -bool(false) -Done -- cgit v1.2.1