1
0
mirror of https://github.com/php/php-src.git synced 2026-04-01 21:22:13 +02:00
Files
archived-php-src/ext/dom/tests/DOMDocument_adoptNode.phpt
George Peter Banyard 8fef83dd3c Promote warnings to error in DOM extension
Closes GH-5418
2020-09-22 19:12:32 +01:00

21 lines
312 B
PHP

--TEST--
DOMDocument::adoptNode not implemented
--SKIPIF--
<?php
require_once('skipif.inc');
?>
--FILE--
<?php
$dom = new DOMDocument();
$dom->loadXML("<root />");
try {
$dom->adoptNode($dom->documentElement);
} catch (\Error $e) {
echo $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
Not yet implemented