From: Christian Stocker Date: Mon, 23 Feb 2004 15:55:16 +0000 (+0000) Subject: test for attributes X-Git-Tag: RELEASE_0_2_0~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3b1085f064d27eccd11ccdac08e9669bff28753;p=php test for attributes --- diff --git a/ext/xml/tests/xml010.phpt b/ext/xml/tests/xml010.phpt new file mode 100644 index 0000000000..962aad35a7 --- /dev/null +++ b/ext/xml/tests/xml010.phpt @@ -0,0 +1,34 @@ +--TEST-- +XML parser test, attributes +--FILE-- + $value) { + print "$key = $value "; + } + print "\n"; +} +function end_elem() +{ +} + +$xml = << + + + +HERE; + +$parser = xml_parser_create_ns("ISO-8859-1","@"); +xml_set_element_handler($parser,'start_elem','end_elem'); +xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); +xml_parse($parser, $xml); +xml_parser_free($parser); +?> +--EXPECT-- +http://example.com/foo@a +http://example.com/bar@b foo = bar +http://example.com/bar@c http://example.com/bar@nix = null foo = bar