summaryrefslogtreecommitdiff
path: root/ext/dom/tests/domdocumentload_test_method_savexml.php
blob: 8ffd9445246df6dd42d1be90b3a94c0967a4b682 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
include(dirname(__FILE__) . '/domdocumentload_utilities.php');

$doc = new DOMDocument();

$libxml_options = libxml_options_to_int(getenv('LOAD_OPTIONS'));

$result = $doc->load(dirname(__FILE__) . getenv('XML_FILE'), $libxml_options);

$expectedResult = (bool) getenv('EXPECTED_RESULT');
assert('$result === $expectedResult');

echo $doc->saveXML();
?>