1<?php 2include(dirname(__FILE__) . '/domdocumentload_utilities.inc'); 3 4$doc = new DOMDocument(); 5 6$libxml_options = libxml_options_to_int(getenv('LOAD_OPTIONS')); 7$result = $doc->loadXML(file_get_contents(dirname(__FILE__) . getenv('XML_FILE')), 8 $libxml_options); 9 10$expectedResult = (bool) getenv('EXPECTED_RESULT'); 11assert($result === $expectedResult); 12?> 13