]> granicus.if.org Git - php/commitdiff
Add attribute test
authorMarcus Boerger <helly@php.net>
Sun, 26 Oct 2003 13:27:26 +0000 (13:27 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 26 Oct 2003 13:27:26 +0000 (13:27 +0000)
ext/simplexml/tests/007.phpt [new file with mode: 0755]

diff --git a/ext/simplexml/tests/007.phpt b/ext/simplexml/tests/007.phpt
new file mode 100755 (executable)
index 0000000..0d1f14e
--- /dev/null
@@ -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===