diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-05 10:39:19 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-05 11:02:31 +0100 |
commit | 94d509363d996d3ab8b5441f5b0668c0f22799e6 (patch) | |
tree | a600b62b7ecf2eabfd47976d2b3b67909e7fcf8c /ext/xml/tests | |
parent | b26df0e39538d17f3d84481d17deb3b9c41873de (diff) | |
download | php-git-94d509363d996d3ab8b5441f5b0668c0f22799e6.tar.gz |
Remove more zpp error tests
Diffstat (limited to 'ext/xml/tests')
22 files changed, 0 insertions, 981 deletions
diff --git a/ext/xml/tests/xml_error_string_error.phpt b/ext/xml/tests/xml_error_string_error.phpt deleted file mode 100644 index e7cc6dea19..0000000000 --- a/ext/xml/tests/xml_error_string_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_error_string() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto string xml_error_string(int code) - * Description: Get XML parser error string - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_error_string() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_error_string() function with Zero arguments --\n"; -var_dump( xml_error_string() ); - -//Test xml_error_string with one more than the expected number of arguments -echo "\n-- Testing xml_error_string() function with more than expected no. of arguments --\n"; -$code = 10; -$extra_arg = 10; -var_dump( xml_error_string($code, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_error_string() : error conditions *** - --- Testing xml_error_string() function with Zero arguments -- - -Warning: xml_error_string() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_error_string() function with more than expected no. of arguments -- - -Warning: xml_error_string() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_get_current_byte_index_error.phpt b/ext/xml/tests/xml_get_current_byte_index_error.phpt deleted file mode 100644 index 14a7456e3b..0000000000 --- a/ext/xml/tests/xml_get_current_byte_index_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_get_current_byte_index() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_get_current_byte_index(resource parser) - * Description: Get current byte index for an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_get_current_byte_index() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_get_current_byte_index() function with Zero arguments --\n"; -var_dump( xml_get_current_byte_index() ); - -//Test xml_get_current_byte_index with one more than the expected number of arguments -echo "\n-- Testing xml_get_current_byte_index() function with more than expected no. of arguments --\n"; - -$extra_arg = 10; -var_dump( xml_get_current_byte_index(null, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_get_current_byte_index() : error conditions *** - --- Testing xml_get_current_byte_index() function with Zero arguments -- - -Warning: xml_get_current_byte_index() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_get_current_byte_index() function with more than expected no. of arguments -- - -Warning: xml_get_current_byte_index() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_get_current_column_number_error.phpt b/ext/xml/tests/xml_get_current_column_number_error.phpt deleted file mode 100644 index 9e915dd233..0000000000 --- a/ext/xml/tests/xml_get_current_column_number_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_get_current_column_number() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_get_current_column_number(resource parser) - * Description: Get current column number for an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_get_current_column_number() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_get_current_column_number() function with Zero arguments --\n"; -var_dump( xml_get_current_column_number() ); - -//Test xml_get_current_column_number with one more than the expected number of arguments -echo "\n-- Testing xml_get_current_column_number() function with more than expected no. of arguments --\n"; - -$extra_arg = 10; -var_dump( xml_get_current_column_number(null, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_get_current_column_number() : error conditions *** - --- Testing xml_get_current_column_number() function with Zero arguments -- - -Warning: xml_get_current_column_number() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_get_current_column_number() function with more than expected no. of arguments -- - -Warning: xml_get_current_column_number() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_get_current_line_number_error.phpt b/ext/xml/tests/xml_get_current_line_number_error.phpt deleted file mode 100644 index c10ebeca90..0000000000 --- a/ext/xml/tests/xml_get_current_line_number_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_get_current_line_number() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_get_current_line_number(resource parser) - * Description: Get current line number for an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_get_current_line_number() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_get_current_line_number() function with Zero arguments --\n"; -var_dump( xml_get_current_line_number() ); - -//Test xml_get_current_line_number with one more than the expected number of arguments -echo "\n-- Testing xml_get_current_line_number() function with more than expected no. of arguments --\n"; - -$extra_arg = 10; -var_dump( xml_get_current_line_number(null, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_get_current_line_number() : error conditions *** - --- Testing xml_get_current_line_number() function with Zero arguments -- - -Warning: xml_get_current_line_number() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_get_current_line_number() function with more than expected no. of arguments -- - -Warning: xml_get_current_line_number() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_get_error_code_error.phpt b/ext/xml/tests/xml_get_error_code_error.phpt deleted file mode 100644 index 86b037eaf7..0000000000 --- a/ext/xml/tests/xml_get_error_code_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_get_error_code() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_get_error_code(resource parser) - * Description: Get XML parser error code - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_get_error_code() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_get_error_code() function with Zero arguments --\n"; -var_dump( xml_get_error_code() ); - -//Test xml_get_error_code with one more than the expected number of arguments -echo "\n-- Testing xml_get_error_code() function with more than expected no. of arguments --\n"; - -$extra_arg = 10; -var_dump( xml_get_error_code(null, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_get_error_code() : error conditions *** - --- Testing xml_get_error_code() function with Zero arguments -- - -Warning: xml_get_error_code() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_get_error_code() function with more than expected no. of arguments -- - -Warning: xml_get_error_code() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_parse_error.phpt b/ext/xml/tests/xml_parse_error.phpt deleted file mode 100644 index 68723bd6c3..0000000000 --- a/ext/xml/tests/xml_parse_error.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Test xml_parse() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_parse(resource parser, string data [, int isFinal]) - * Description: Start parsing an XML document - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parse() : error conditions ***\n"; - - -//Test xml_parse with one more than the expected number of arguments -echo "\n-- Testing xml_parse() function with more than expected no. of arguments --\n"; - -$data = 'string_val'; -$isFinal = false; -$extra_arg = 10; -var_dump( xml_parse(null, $data, $isFinal, $extra_arg) ); - -// Testing xml_parse with one less than the expected number of arguments -echo "\n-- Testing xml_parse() function with less than expected no. of arguments --\n"; - -var_dump( xml_parse(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parse() : error conditions *** - --- Testing xml_parse() function with more than expected no. of arguments -- - -Warning: xml_parse() expects at most 3 parameters, 4 given in %s on line %d -NULL - --- Testing xml_parse() function with less than expected no. of arguments -- - -Warning: xml_parse() expects at least 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_parse_into_struct_error.phpt b/ext/xml/tests/xml_parse_into_struct_error.phpt deleted file mode 100644 index 9d448ca45d..0000000000 --- a/ext/xml/tests/xml_parse_into_struct_error.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -Test xml_parse_into_struct() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_parse_into_struct(resource parser, string data, array &struct, array &index) - * Description: Parsing a XML document - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parse_into_struct() : error conditions ***\n"; - -//Test xml_parse_into_struct with one more than the expected number of arguments -echo "\n-- Testing xml_parse_into_struct() function with more than expected no. of arguments --\n"; - -$data = 'string_val'; -$struct = array(1, 2); -$index = array(1, 2); -$extra_arg = 10; -var_dump( xml_parse_into_struct(null, $data, $struct, $index, $extra_arg) ); - -// Testing xml_parse_into_struct with one less than the expected number of arguments -echo "\n-- Testing xml_parse_into_struct() function with less than expected no. of arguments --\n"; - -$data = 'string_val'; -var_dump( xml_parse_into_struct(null, $data) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parse_into_struct() : error conditions *** - --- Testing xml_parse_into_struct() function with more than expected no. of arguments -- - -Warning: xml_parse_into_struct() expects at most 4 parameters, 5 given in %s on line %d -NULL - --- Testing xml_parse_into_struct() function with less than expected no. of arguments -- - -Warning: xml_parse_into_struct() expects at least 3 parameters, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_parser_create_error.phpt b/ext/xml/tests/xml_parser_create_error.phpt deleted file mode 100644 index ac64294639..0000000000 --- a/ext/xml/tests/xml_parser_create_error.phpt +++ /dev/null @@ -1,35 +0,0 @@ ---TEST-- -Test xml_parser_create() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto resource xml_parser_create([string encoding]) - * Description: Create an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parser_create() : error conditions ***\n"; - - -//Test xml_parser_create with one more than the expected number of arguments -echo "\n-- Testing xml_parser_create() function with more than expected no. of arguments --\n"; -$encoding = 'utf-8'; -$extra_arg = 10; -var_dump( xml_parser_create($encoding, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parser_create() : error conditions *** - --- Testing xml_parser_create() function with more than expected no. of arguments -- - -Warning: xml_parser_create() expects at most 1 parameter, 2 given in %s on line %d -bool(false) -Done diff --git a/ext/xml/tests/xml_parser_create_ns_error.phpt b/ext/xml/tests/xml_parser_create_ns_error.phpt deleted file mode 100644 index 37d1a8f944..0000000000 --- a/ext/xml/tests/xml_parser_create_ns_error.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -Test xml_parser_create_ns() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto resource xml_parser_create_ns([string encoding [, string sep]]) - * Description: Create an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parser_create_ns() : error conditions ***\n"; - - -//Test xml_parser_create_ns with one more than the expected number of arguments -echo "\n-- Testing xml_parser_create_ns() function with more than expected no. of arguments --\n"; -$encoding = 'string_val'; -$sep = 'string_val'; -$extra_arg = 10; -var_dump( xml_parser_create_ns($encoding, $sep, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parser_create_ns() : error conditions *** - --- Testing xml_parser_create_ns() function with more than expected no. of arguments -- - -Warning: xml_parser_create_ns() expects at most 2 parameters, 3 given in %s on line %d -bool(false) -Done diff --git a/ext/xml/tests/xml_parser_free_error.phpt b/ext/xml/tests/xml_parser_free_error.phpt deleted file mode 100644 index 0502f1fecb..0000000000 --- a/ext/xml/tests/xml_parser_free_error.phpt +++ /dev/null @@ -1,43 +0,0 @@ ---TEST-- -Test xml_parser_free() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_parser_free(resource parser) - * Description: Free an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parser_free() : error conditions ***\n"; - -// Zero arguments -echo "\n-- Testing xml_parser_free() function with Zero arguments --\n"; -var_dump( xml_parser_free() ); - -//Test xml_parser_free with one more than the expected number of arguments -echo "\n-- Testing xml_parser_free() function with more than expected no. of arguments --\n"; - -$extra_arg = 10; -var_dump( xml_parser_free(null, $extra_arg) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parser_free() : error conditions *** - --- Testing xml_parser_free() function with Zero arguments -- - -Warning: xml_parser_free() expects exactly 1 parameter, 0 given in %s on line %d -NULL - --- Testing xml_parser_free() function with more than expected no. of arguments -- - -Warning: xml_parser_free() expects exactly 1 parameter, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_parser_get_option_error.phpt b/ext/xml/tests/xml_parser_get_option_error.phpt deleted file mode 100644 index 10218fa8f9..0000000000 --- a/ext/xml/tests/xml_parser_get_option_error.phpt +++ /dev/null @@ -1,45 +0,0 @@ ---TEST-- -Test xml_parser_get_option() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_parser_get_option(resource parser, int option) - * Description: Get options from an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parser_get_option() : error conditions ***\n"; - - -//Test xml_parser_get_option with one more than the expected number of arguments -echo "\n-- Testing xml_parser_get_option() function with more than expected no. of arguments --\n"; - -$option = 10; -$extra_arg = 10; -var_dump( xml_parser_get_option(null, $option, $extra_arg) ); - -// Testing xml_parser_get_option with one less than the expected number of arguments -echo "\n-- Testing xml_parser_get_option() function with less than expected no. of arguments --\n"; - -var_dump( xml_parser_get_option(null) ); -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parser_get_option() : error conditions *** - --- Testing xml_parser_get_option() function with more than expected no. of arguments -- - -Warning: xml_parser_get_option() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_parser_get_option() function with less than expected no. of arguments -- - -Warning: xml_parser_get_option() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_parser_set_option_error.phpt b/ext/xml/tests/xml_parser_set_option_error.phpt deleted file mode 100644 index b99050dc19..0000000000 --- a/ext/xml/tests/xml_parser_set_option_error.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -Test xml_parser_set_option() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_parser_set_option(resource parser, int option, mixed value) - * Description: Set options in an XML parser - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_parser_set_option() : error conditions ***\n"; - - -//Test xml_parser_set_option with one more than the expected number of arguments -echo "\n-- Testing xml_parser_set_option() function with more than expected no. of arguments --\n"; - -$option = 10; -$value = 1; -$extra_arg = 10; -var_dump( xml_parser_set_option(null, $option, $value, $extra_arg) ); - -// Testing xml_parser_set_option with one less than the expected number of arguments -echo "\n-- Testing xml_parser_set_option() function with less than expected no. of arguments --\n"; - -$option = 10; -var_dump( xml_parser_set_option(null, $option) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_parser_set_option() : error conditions *** - --- Testing xml_parser_set_option() function with more than expected no. of arguments -- - -Warning: xml_parser_set_option() expects exactly 3 parameters, 4 given in %s on line %d -NULL - --- Testing xml_parser_set_option() function with less than expected no. of arguments -- - -Warning: xml_parser_set_option() expects exactly 3 parameters, 2 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_character_data_handler_error.phpt b/ext/xml/tests/xml_set_character_data_handler_error.phpt deleted file mode 100644 index 21fbbe0a12..0000000000 --- a/ext/xml/tests/xml_set_character_data_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_character_data_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_character_data_handler(resource parser, string hdl) - * Description: Set up character data handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_character_data_handler() : error conditions ***\n"; - - -//Test xml_set_character_data_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_character_data_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_character_data_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_character_data_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_character_data_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_character_data_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_character_data_handler() : error conditions *** - --- Testing xml_set_character_data_handler() function with more than expected no. of arguments -- - -Warning: xml_set_character_data_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_character_data_handler() function with less than expected no. of arguments -- - -Warning: xml_set_character_data_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_default_handler_error.phpt b/ext/xml/tests/xml_set_default_handler_error.phpt deleted file mode 100644 index 6ebe364096..0000000000 --- a/ext/xml/tests/xml_set_default_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_default_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_default_handler(resource parser, string hdl) - * Description: Set up default handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_default_handler() : error conditions ***\n"; - - -//Test xml_set_default_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_default_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_default_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_default_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_default_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_default_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_default_handler() : error conditions *** - --- Testing xml_set_default_handler() function with more than expected no. of arguments -- - -Warning: xml_set_default_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_default_handler() function with less than expected no. of arguments -- - -Warning: xml_set_default_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_element_handler_error.phpt b/ext/xml/tests/xml_set_element_handler_error.phpt deleted file mode 100644 index e759d0632f..0000000000 --- a/ext/xml/tests/xml_set_element_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_element_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_element_handler(resource parser, string shdl, string ehdl) - * Description: Set up start and end element handlers - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_element_handler() : error conditions ***\n"; - - -//Test xml_set_element_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_element_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_element_handler(null, $hdl, $hdl, $extra_arg) ); - -// Testing xml_set_element_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_element_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_element_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_element_handler() : error conditions *** - --- Testing xml_set_element_handler() function with more than expected no. of arguments -- - -Warning: xml_set_element_handler() expects exactly 3 parameters, 4 given in %s on line %d -NULL - --- Testing xml_set_element_handler() function with less than expected no. of arguments -- - -Warning: xml_set_element_handler() expects exactly 3 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt b/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt deleted file mode 100644 index 9be5ce069a..0000000000 --- a/ext/xml/tests/xml_set_end_namespace_decl_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_end_namespace_decl_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_end_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_end_namespace_decl_handler() : error conditions ***\n"; - - -//Test xml_set_end_namespace_decl_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_end_namespace_decl_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_end_namespace_decl_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_end_namespace_decl_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_end_namespace_decl_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_end_namespace_decl_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_end_namespace_decl_handler() : error conditions *** - --- Testing xml_set_end_namespace_decl_handler() function with more than expected no. of arguments -- - -Warning: xml_set_end_namespace_decl_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_end_namespace_decl_handler() function with less than expected no. of arguments -- - -Warning: xml_set_end_namespace_decl_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt b/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt deleted file mode 100644 index b18852dde2..0000000000 --- a/ext/xml/tests/xml_set_external_entity_ref_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_external_entity_ref_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_external_entity_ref_handler(resource parser, string hdl) - * Description: Set up external entity reference handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_external_entity_ref_handler() : error conditions ***\n"; - - -//Test xml_set_external_entity_ref_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_external_entity_ref_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_external_entity_ref_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_external_entity_ref_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_external_entity_ref_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_external_entity_ref_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_external_entity_ref_handler() : error conditions *** - --- Testing xml_set_external_entity_ref_handler() function with more than expected no. of arguments -- - -Warning: xml_set_external_entity_ref_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_external_entity_ref_handler() function with less than expected no. of arguments -- - -Warning: xml_set_external_entity_ref_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_notation_decl_handler_error.phpt b/ext/xml/tests/xml_set_notation_decl_handler_error.phpt deleted file mode 100644 index c9d68d0b7c..0000000000 --- a/ext/xml/tests/xml_set_notation_decl_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_notation_decl_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_notation_decl_handler(resource parser, string hdl) - * Description: Set up notation declaration handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_notation_decl_handler() : error conditions ***\n"; - - -//Test xml_set_notation_decl_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_notation_decl_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_notation_decl_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_notation_decl_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_notation_decl_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_notation_decl_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_notation_decl_handler() : error conditions *** - --- Testing xml_set_notation_decl_handler() function with more than expected no. of arguments -- - -Warning: xml_set_notation_decl_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_notation_decl_handler() function with less than expected no. of arguments -- - -Warning: xml_set_notation_decl_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_object_error.phpt b/ext/xml/tests/xml_set_object_error.phpt deleted file mode 100644 index 5a1fb4cb24..0000000000 --- a/ext/xml/tests/xml_set_object_error.phpt +++ /dev/null @@ -1,50 +0,0 @@ ---TEST-- -Test xml_set_object() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_object(resource parser, object &obj) - * Description: Set up object which should be used for callbacks - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_object() : error conditions ***\n"; - - -//Test xml_set_object with one more than the expected number of arguments -echo "\n-- Testing xml_set_object() function with more than expected no. of arguments --\n"; - -//WARNING: Unable to initialise parser of type resource - -$obj = new stdclass(); -$extra_arg = 10; -var_dump( xml_set_object(null, $obj, $extra_arg) ); - -// Testing xml_set_object with one less than the expected number of arguments -echo "\n-- Testing xml_set_object() function with less than expected no. of arguments --\n"; - -//WARNING: Unable to initialise parser of type resource - -var_dump( xml_set_object(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_object() : error conditions *** - --- Testing xml_set_object() function with more than expected no. of arguments -- - -Warning: xml_set_object() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_object() function with less than expected no. of arguments -- - -Warning: xml_set_object() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt b/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt deleted file mode 100644 index 0016e00e93..0000000000 --- a/ext/xml/tests/xml_set_processing_instruction_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_processing_instruction_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_processing_instruction_handler(resource parser, string hdl) - * Description: Set up processing instruction (PI) handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_processing_instruction_handler() : error conditions ***\n"; - - -//Test xml_set_processing_instruction_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_processing_instruction_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_processing_instruction_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_processing_instruction_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_processing_instruction_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_processing_instruction_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_processing_instruction_handler() : error conditions *** - --- Testing xml_set_processing_instruction_handler() function with more than expected no. of arguments -- - -Warning: xml_set_processing_instruction_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_processing_instruction_handler() function with less than expected no. of arguments -- - -Warning: xml_set_processing_instruction_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt b/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt deleted file mode 100644 index 5de0bbfc1a..0000000000 --- a/ext/xml/tests/xml_set_start_namespace_decl_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_start_namespace_decl_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_start_namespace_decl_handler(resource parser, string hdl) - * Description: Set up character data handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_start_namespace_decl_handler() : error conditions ***\n"; - - -//Test xml_set_start_namespace_decl_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_start_namespace_decl_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_start_namespace_decl_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_start_namespace_decl_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_start_namespace_decl_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_start_namespace_decl_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_start_namespace_decl_handler() : error conditions *** - --- Testing xml_set_start_namespace_decl_handler() function with more than expected no. of arguments -- - -Warning: xml_set_start_namespace_decl_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_start_namespace_decl_handler() function with less than expected no. of arguments -- - -Warning: xml_set_start_namespace_decl_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done diff --git a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt b/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt deleted file mode 100644 index b196ffb48a..0000000000 --- a/ext/xml/tests/xml_set_unparsed_entity_decl_handler_error.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test xml_set_unparsed_entity_decl_handler() function : error conditions ---SKIPIF-- -<?php -if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} -?> ---FILE-- -<?php -/* Prototype : proto int xml_set_unparsed_entity_decl_handler(resource parser, string hdl) - * Description: Set up unparsed entity declaration handler - * Source code: ext/xml/xml.c - * Alias to functions: - */ - -echo "*** Testing xml_set_unparsed_entity_decl_handler() : error conditions ***\n"; - - -//Test xml_set_unparsed_entity_decl_handler with one more than the expected number of arguments -echo "\n-- Testing xml_set_unparsed_entity_decl_handler() function with more than expected no. of arguments --\n"; - -$hdl = 'string_val'; -$extra_arg = 10; -var_dump( xml_set_unparsed_entity_decl_handler(null, $hdl, $extra_arg) ); - -// Testing xml_set_unparsed_entity_decl_handler with one less than the expected number of arguments -echo "\n-- Testing xml_set_unparsed_entity_decl_handler() function with less than expected no. of arguments --\n"; - -var_dump( xml_set_unparsed_entity_decl_handler(null) ); - -echo "Done"; -?> ---EXPECTF-- -*** Testing xml_set_unparsed_entity_decl_handler() : error conditions *** - --- Testing xml_set_unparsed_entity_decl_handler() function with more than expected no. of arguments -- - -Warning: xml_set_unparsed_entity_decl_handler() expects exactly 2 parameters, 3 given in %s on line %d -NULL - --- Testing xml_set_unparsed_entity_decl_handler() function with less than expected no. of arguments -- - -Warning: xml_set_unparsed_entity_decl_handler() expects exactly 2 parameters, 1 given in %s on line %d -NULL -Done |