From: Christian Stocker Date: Mon, 19 Jan 2004 15:00:59 +0000 (+0000) Subject: adjust test X-Git-Tag: php_ibase_before_split~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0a1f294e98dc3d55718360cba6771580c7e1676;p=php adjust test --- diff --git a/ext/xsl/tests/xslt011.phpt b/ext/xsl/tests/xslt011.phpt index 46adfef5db..4f4d842857 100644 --- a/ext/xsl/tests/xslt011.phpt +++ b/ext/xsl/tests/xslt011.phpt @@ -17,7 +17,9 @@ $dom = new domDocument(); $xml = new DomDocument(); $xml->load(dirname(__FILE__)."/xslt011.xml"); + $proc->registerPhpFunctions(); print $proc->transformToXml($xml); + function foobar($id, $secondArg = "" ) { if (is_array($id)) { return $id[0]->value . " - " . $secondArg; @@ -40,10 +42,10 @@ $dom = new domDocument(); --EXPECTF-- Test 11: php:function Support -Notice: Object of class foo could not be converted to string in %s on line 15 +Warning: xsltprocessor::transformToXml(): A PHP Object can not be converted to a string in %s on line 16 foobar - secondArg foobar - this is from an external DomDocument from the Input Document -Object +