--TEST-- Check XSLTProcessor::transformToURI() with string parameter --CREDITS-- Rodrigo Prado de Jesus --SKIPIF-- --FILE-- bob joe EOB; $xsl = <<

Users

EOB; $xmldoc = new DOMDocument('1.0', 'utf-8'); $xmldoc->loadXML($xml); $xsldoc = new DOMDocument('1.0', 'utf-8'); $xsldoc->loadXML($xsl); $proc = new XSLTProcessor(); $proc->registerPHPFunctions(); $proc->importStyleSheet($xsldoc); $wrong_parameter = 'stringValue'; $uri = 'php://output'; echo $proc->transformToURI($wrong_parameter, $uri); ?> --EXPECTF-- Warning: XSLTProcessor::transformToUri() expects parameter 1 to be object, string given in %s on line %d