1--TEST-- 2Element::$substitutedNodeValue 3--EXTENSIONS-- 4dom 5--FILE-- 6<?php 7 8$dom = Dom\XMLDocument::createFromString('<root/>'); 9 10$dom->documentElement->substitutedNodeValue = "1"; 11var_dump($dom->documentElement->substitutedNodeValue); 12var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements 13echo $dom->saveXML(), "\n"; 14 15$dom->documentElement->substitutedNodeValue = "<>"; 16var_dump($dom->documentElement->substitutedNodeValue); 17var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements 18echo $dom->saveXML(), "\n"; 19 20$dom->documentElement->substitutedNodeValue = ""; 21var_dump($dom->documentElement->substitutedNodeValue); 22var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements 23echo $dom->saveXML(), "\n"; 24 25?> 26--EXPECTF-- 27string(1) "1" 28NULL 29<?xml version="1.0" encoding="UTF-8"?> 30<root>1</root> 31string(2) "<>" 32NULL 33<?xml version="1.0" encoding="UTF-8"?> 34<root><></root> 35string(0) "" 36NULL 37<?xml version="1.0" encoding="UTF-8"?> 38%r(<root><\/root>|<root\/>)%r 39