diff options
Diffstat (limited to 'ext/xml/tests/xml_set_notation_decl_handler_basic.phpt')
-rw-r--r-- | ext/xml/tests/xml_set_notation_decl_handler_basic.phpt | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt b/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt index 6616681ff8..a4ea86375e 100644 --- a/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt +++ b/ext/xml/tests/xml_set_notation_decl_handler_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test xml_set_notation_decl_handler function : basic +Test xml_set_notation_decl_handler function : basic --SKIPIF-- -<?php +<?php if (!extension_loaded("xml")) { - print "skip - XML extension not loaded"; -} + print "skip - XML extension not loaded"; +} ?> --FILE-- <?php /* Prototype : proto bool xml_set_notation_decl_handler ( resource $parser , callback $handler ) * Description: Sets the notation declaration handler function for the XML parser. * Source code: ext/xml/xml.c - * Alias to functions: + * Alias to functions: */ class XML_Parser @@ -26,16 +26,16 @@ class XML_Parser echo "...Public ID=" . $public_ID . "\n"; echo "...Notation name=" . $notation_name . "\n"; } - + function notation_decl_handler($parser, $name, $base, $system_ID,$public_ID) { - echo "notation_decl_handler called\n"; + echo "notation_decl_handler called\n"; echo "...Name=" . $name . "\n"; echo "...Base=" . $base . "\n"; echo "...System ID=" . $system_ID . "\n"; echo "...Public ID=" . $public_ID . "\n"; } - + function parse($data) { $parser = xml_parser_create(); @@ -59,10 +59,10 @@ $xml = <<<HERE ]> HERE; -echo "Simple test of xml_set_notation_decl_handler(() function\n"; +echo "Simple test of xml_set_notation_decl_handler(() function\n"; $p1 = new Xml_Parser(); -$p1->parse($xml); -echo "Done\n"; +$p1->parse($xml); +echo "Done\n"; ?> --EXPECT-- Simple test of xml_set_notation_decl_handler(() function |