--TEST-- DOMDocument::relaxNGValidate() should fail on invalid RelaxNG file source --CREDITS-- Knut Urdalen --EXTENSIONS-- dom --FILE-- Pear Pear XML; $doc = new DOMDocument(); $doc->loadXML($xml); $result = $doc->relaxNGValidate($rng); var_dump($result); ?> --EXPECTF-- Warning: DOMDocument::relaxNGValidate(): I/O %s : failed to load %s Warning: DOMDocument::relaxNGValidate(): xmlRelaxNGParse: could not load %s/foo.rng in %s on line %d Warning: DOMDocument::relaxNGValidate(): Invalid RelaxNG in %s on line %d bool(false)