xref: /php-src/ext/dom/tests/DOMXPath_clone.phpt (revision 85217a04)
1--TEST--
2DOMXPath: Cloning a DOMXPath object
3--EXTENSIONS--
4dom
5--SKIPIF--
6<?php
7if (!class_exists('DOMXPath')) die('skip no xpath support');
8?>
9--FILE--
10<?php
11
12$dom = new DOMDocument;
13$xpath = new DOMXPath($dom);
14try {
15    clone $xpath;
16} catch (Error $e) {
17    echo $e->getMessage(), "\n";
18}
19
20?>
21--EXPECT--
22Trying to clone an uncloneable object of class DOMXPath
23