chregu Mon Jan 19 10:01:00 2004 EDT
Modified files:
/php-src/ext/xsl/tests xslt011.phpt
Log:
adjust test
http://cvs.php.net/diff.php/php-src/ext/xsl/tests/xslt011.phpt?r1=1.4&r2=1.5&ty=u
Index: php-src/ext/xsl/tests/xslt011.phpt
diff -u php-src/ext/xsl/tests/xslt011.phpt:1.4 php-src/ext/xsl/tests/xslt011.phpt:1.5
--- php-src/ext/xsl/tests/xslt011.phpt:1.4 Sun Jan 18 07:30:52 2004
+++ php-src/ext/xsl/tests/xslt011.phpt Mon Jan 19 10:00:59 2004
@@ -17,7 +17,9 @@
$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 @@
--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
<?xml version="1.0"?>
foobar - secondArg
foobar -
this is from an external DomDocument
from the Input Document
-Object
+
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php