php-src/ext/dom/tests/domdocumentload_test_method_savexml.inc
Peter Kokot f116484cf1 Rename *.php files in ext/dom tests to *.inc
*.php files are ignored by Git and a better practice might be to rename
PHP included files for tests.
2018-09-23 17:22:55 +02:00

15 lines
358 B
PHP

<?php
include(dirname(__FILE__) . '/domdocumentload_utilities.inc');
$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();
?>