summaryrefslogtreecommitdiff
path: root/ext/simplexml
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-02-03 22:07:29 +0000
committerMarcus Boerger <helly@php.net>2004-02-03 22:07:29 +0000
commitdfad2955ee4b8ac6d55bbad6a7b1e1eb2b493ac8 (patch)
tree8262421ba8063763415bee4922182ec9052dfe6c /ext/simplexml
parent4137d77ca96630e8b1bba8d076aab64990670d48 (diff)
downloadphp-git-dfad2955ee4b8ac6d55bbad6a7b1e1eb2b493ac8.tar.gz
Update tests
Diffstat (limited to 'ext/simplexml')
-rw-r--r--ext/simplexml/tests/002.phpt2
-rwxr-xr-xext/simplexml/tests/006.phpt2
-rwxr-xr-xext/simplexml/tests/019.phpt2
3 files changed, 3 insertions, 3 deletions
diff --git a/ext/simplexml/tests/002.phpt b/ext/simplexml/tests/002.phpt
index 009101adb0..d1f6a0621f 100644
--- a/ext/simplexml/tests/002.phpt
+++ b/ext/simplexml/tests/002.phpt
@@ -24,7 +24,7 @@ EOF;
$sxe = simplexml_load_string($xml);
-$copy = $sxe->__clone();
+$copy = clone $sxe;
print_r($copy);
diff --git a/ext/simplexml/tests/006.phpt b/ext/simplexml/tests/006.phpt
index 9e81f20dd9..9360b2dff3 100755
--- a/ext/simplexml/tests/006.phpt
+++ b/ext/simplexml/tests/006.phpt
@@ -40,7 +40,7 @@ foreach($sxe as $name => $data) {
echo "===CLONE===\n";
-foreach($sxe->__clone() as $name => $data) {
+foreach(clone $sxe as $name => $data) {
var_dump($name);
var_dump(trim($data));
}
diff --git a/ext/simplexml/tests/019.phpt b/ext/simplexml/tests/019.phpt
index 09f0569d7a..a54a1bdd52 100755
--- a/ext/simplexml/tests/019.phpt
+++ b/ext/simplexml/tests/019.phpt
@@ -40,7 +40,7 @@ foreach($sxe->children() as $name => $data) {
echo "===CLONE===\n";
-foreach($sxe->children()->__clone() as $name => $data) {
+foreach(clone $sxe->children() as $name => $data) {
var_dump($name);
var_dump(trim($data));
}