mirror of
https://github.com/php/php-src.git
synced 2024-10-02 15:26:06 +00:00
13 lines
337 B
PHP
13 lines
337 B
PHP
|
<?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');
|
||
|
?>
|