--TEST-- DOMDocument::relaxNGValidateSource() should fail on invalid RNG schema --CREDITS-- Knut Urdalen --EXTENSIONS-- dom --FILE-- RNG; $xml = <<< XML Pear XML; $doc = new DOMDocument(); $doc->loadXML($xml); $result = $doc->relaxNGValidateSource($rng); var_dump($result); ?> --EXPECTF-- Warning: DOMDocument::relaxNGValidateSource(): xmlRelaxNGParseElement: element has no content in %s on line %d Warning: DOMDocument::relaxNGValidateSource(): Invalid RelaxNG in %s on line %d bool(false)