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

$doc = new DOMDocument();

$libxml_options = libxml_options_to_int(getenv('LOAD_OPTIONS'));
$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')), 
    $libxml_options);

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