From c0a1f294e98dc3d55718360cba6771580c7e1676 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Mon, 19 Jan 2004 15:00:59 +0000 Subject: [PATCH] adjust test --- ext/xsl/tests/xslt011.phpt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ext/xsl/tests/xslt011.phpt b/ext/xsl/tests/xslt011.phpt index 46adfef5dba..4f4d8428579 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 +