summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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===