ru_php/ext/dom/tests/bug46849.phpt

17 lines
275 B
PHP

--TEST--
Bug #46849 (Cloning DOMDocument doesn't clone the properties).
--EXTENSIONS--
dom
--FILE--
<?php
$dom = new DOMDocument;
$dom->formatOutput = true;
var_dump($dom->formatOutput);
$dom2 = clone $dom;
var_dump($dom2->formatOutput);
?>
--EXPECT--
bool(true)
bool(true)