summaryrefslogtreecommitdiff
path: root/ext/simplexml/tests/002.phpt
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-10-25 20:00:04 +0000
committerMarcus Boerger <helly@php.net>2003-10-25 20:00:04 +0000
commitf67510a0d8ef9819915357350aaca0a82ae6b743 (patch)
tree92106bcbf9172481935f1356b3680c699e28e4d9 /ext/simplexml/tests/002.phpt
parentda8ce17f7ae1abae2adaf7c36049001208e0863a (diff)
downloadphp-git-f67510a0d8ef9819915357350aaca0a82ae6b743.tar.gz
Add some testing
Diffstat (limited to 'ext/simplexml/tests/002.phpt')
-rw-r--r--ext/simplexml/tests/002.phpt50
1 files changed, 50 insertions, 0 deletions
diff --git a/ext/simplexml/tests/002.phpt b/ext/simplexml/tests/002.phpt
new file mode 100644
index 0000000000..5cae43806b
--- /dev/null
+++ b/ext/simplexml/tests/002.phpt
@@ -0,0 +1,50 @@
+--TEST--
+SimpleXML and clone
+--SKIPIF--
+<?php if (!extension_loaded("simplexml")) print "skip"; ?>
+--FILE--
+<?php
+
+$sxe = simplexml_load_file(dirname(__FILE__).'/sxe.xml');
+
+$copy = $sxe->__clone;
+
+print_r($copy);
+
+echo "---Done---\n";
+
+?>
+--EXPECT--
+simplexml_element Object
+(
+ [elem1] => simplexml_element Object
+ (
+ [comment] => simplexml_element Object
+ (
+ )
+
+ [elem2] => simplexml_element Object
+ (
+ [elem3] => simplexml_element Object
+ (
+ [included-entity] => simplexml_element Object
+ (
+ [included-entity] => This is text included from an entity
+ )
+
+ [elem4] => simplexml_element Object
+ (
+ [test] => simplexml_element Object
+ (
+ )
+
+ )
+
+ )
+
+ )
+
+ )
+
+)
+---Done---