2
Test xml_set_end_namespace_decl_handler() function : error conditions
5
if (!extension_loaded("xml")) {
6
print "skip - XML extension not loaded";
11
/* Prototype : proto int xml_set_end_namespace_decl_handler(resource parser, string hdl)
12
* Description: Set up character data handler
13
* Source code: ext/xml/xml.c
17
echo "*** Testing xml_set_end_namespace_decl_handler() : error conditions ***\n";
20
//Test xml_set_end_namespace_decl_handler with one more than the expected number of arguments
21
echo "\n-- Testing xml_set_end_namespace_decl_handler() function with more than expected no. of arguments --\n";
25
var_dump( xml_set_end_namespace_decl_handler(null, $hdl, $extra_arg) );
27
// Testing xml_set_end_namespace_decl_handler with one less than the expected number of arguments
28
echo "\n-- Testing xml_set_end_namespace_decl_handler() function with less than expected no. of arguments --\n";
30
var_dump( xml_set_end_namespace_decl_handler(null) );
35
*** Testing xml_set_end_namespace_decl_handler() : error conditions ***
37
-- Testing xml_set_end_namespace_decl_handler() function with more than expected no. of arguments --
39
Warning: xml_set_end_namespace_decl_handler() expects exactly 2 parameters, 3 given in %s on line %d
42
-- Testing xml_set_end_namespace_decl_handler() function with less than expected no. of arguments --
44
Warning: xml_set_end_namespace_decl_handler() expects exactly 2 parameters, 1 given in %s on line %d