summaryrefslogtreecommitdiff
path: root/ext/xml/tests/xml010.phpt
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /ext/xml/tests/xml010.phpt
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'ext/xml/tests/xml010.phpt')
-rw-r--r--ext/xml/tests/xml010.phpt39
1 files changed, 0 insertions, 39 deletions
diff --git a/ext/xml/tests/xml010.phpt b/ext/xml/tests/xml010.phpt
deleted file mode 100644
index e968442123..0000000000
--- a/ext/xml/tests/xml010.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-XML parser test, attributes
---SKIPIF--
-<?php
-require_once("skipif.inc");
-if (! @xml_parser_create_ns('ISO-8859-1')) { die("skip xml_parser_create_ns is not supported on this plattform");}
-?>
---FILE--
-<?php
-function start_elem($parser,$name,$attribs) {
- print "$name ";
-
- foreach($attribs as $key => $value) {
- print "$key = $value ";
- }
- print "\n";
-}
-function end_elem()
-{
-}
-
-$xml = <<<HERE
-<a xmlns="http://example.com/foo"
- xmlns:bar="http://example.com/bar">
- <bar:b foo="bar"/>
- <bar:c bar:nix="null" foo="bar"/>
-</a>
-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