summaryrefslogtreecommitdiff
path: root/ext/xsl
diff options
context:
space:
mode:
authorShein Alexey <shein@php.net>2011-09-02 18:01:20 +0000
committerShein Alexey <shein@php.net>2011-09-02 18:01:20 +0000
commit712628c47cf3bd7539a570ad442d4d9b8d9eef29 (patch)
treeff2426266c2b60d38266ddb30091c32e451c7f07 /ext/xsl
parenta5f3b37b46215f73ba969cbb6c8b2b4358c65cdb (diff)
downloadphp-git-712628c47cf3bd7539a570ad442d4d9b8d9eef29.tar.gz
Synchronized fixed tests from 5.3 branch.
Diffstat (limited to 'ext/xsl')
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt7
-rw-r--r--ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt7
2 files changed, 14 insertions, 0 deletions
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
index 90d9c68208..d5d99f9224 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcnostring.phpt
@@ -21,10 +21,17 @@ if(!$phpfuncxsl) {
$proc->importStylesheet($phpfuncxsl);
var_dump($proc->registerPHPFunctions());
var_dump($proc->transformToXml($dom));
+?>
--EXPECTF--
NULL
Warning: XSLTProcessor::transformToXml(): Handler name must be a string in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): xmlXPathCompiledEval: evaluation failed in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element value-of in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. in %s on line %d
NULL
--CREDITS--
Christian Weiske, cweiske@php.net
diff --git a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
index a26c210333..a91e6459db 100644
--- a/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
+++ b/ext/xsl/tests/xsltprocessor_registerPHPFunctions-funcundef.phpt
@@ -20,10 +20,17 @@ if(!$phpfuncxsl) {
$proc->importStylesheet($phpfuncxsl);
var_dump($proc->registerPHPFunctions());
var_dump($proc->transformToXml($dom));
+?>
--EXPECTF--
NULL
Warning: XSLTProcessor::transformToXml(): Unable to call handler undefinedfunc() in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): xmlXPathCompiledEval: evaluation failed in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): runtime error: file %s line %d element value-of in %s on line %d
+
+Warning: XSLTProcessor::transformToXml(): XPath evaluation returned no result. in %s on line %d
NULL
--CREDITS--
Christian Weiske, cweiske@php.net