diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 17:45:48 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:45:12 +0200 |
commit | 782352c54ad69c517e3c32b0dd2c25d74842647a (patch) | |
tree | 220bdc1e814e9f44b3578d49b3f239a3fdefa1d0 /ext/xml/tests/xml_set_notation_decl_handler_basic.phpt | |
parent | 604d4bdae5037e021c1f9d35f08cbeddd610d84c (diff) | |
download | php-git-782352c54ad69c517e3c32b0dd2c25d74842647a.tar.gz |
Trim trailing whitespace in *.phpt
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 |