summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-10-26 13:27:26 +0000
committerMarcus Boerger <helly@php.net>2003-10-26 13:27:26 +0000
commit7e906476117df84ae22d498b935ec3531c62ae57 (patch)
tree027b7f00b1aa215f7a48bb87b083a8607c3bc96e
parent14911a136fb6f468c29b5c38c8b53fa050846f19 (diff)
downloadphp-git-7e906476117df84ae22d498b935ec3531c62ae57.tar.gz
Add attribute test
-rwxr-xr-xext/simplexml/tests/007.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/simplexml/tests/007.phpt b/ext/simplexml/tests/007.phpt
new file mode 100755
index 0000000000..0d1f14e4af
--- /dev/null
+++ b/ext/simplexml/tests/007.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SimpleXML and attributes
+--SKIPIF--
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+--FILE--
+<?php
+
+$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');
+
+var_dump($sxe->id);
+var_dump($sxe->elem1->attr1);
+
+echo "===Done===\n";
+
+?>
+--EXPECT--
+string(5) "elem1"
+string(5) "first"
+===Done===