ru_php/ext/dom/tests/DOMXPath_clone.phpt

23 lines
365 B
Plaintext
Raw Permalink Normal View History

--TEST--
DOMXPath: Cloning a DOMXPath object
--EXTENSIONS--
dom
--SKIPIF--
<?php
if (!class_exists('DOMXPath')) die('skip no xpath support');
?>
--FILE--
<?php
$dom = new DOMDocument;
$xpath = new DOMXPath($dom);
try {
clone $xpath;
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Trying to clone an uncloneable object of class DOMXPath