summaryrefslogtreecommitdiff
path: root/ext/xsl/tests
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2004-04-20 09:24:24 +0000
committerChristian Stocker <chregu@php.net>2004-04-20 09:24:24 +0000
commit65bc57a81f46eb7bf7aaab1b257805876bd0bebf (patch)
treef1f2e3984205e5dcce354cbb78c777013878490c /ext/xsl/tests
parente9c3ac04f59fbc26b9f4d5ec41c3920d853eb3f8 (diff)
downloadphp-git-65bc57a81f46eb7bf7aaab1b257805876bd0bebf.tar.gz
- make static methods calls work from within xslt
- extended tests
Diffstat (limited to 'ext/xsl/tests')
-rw-r--r--ext/xsl/tests/xslt011.phpt8
-rw-r--r--ext/xsl/tests/xslt011.xsl4
2 files changed, 12 insertions, 0 deletions
diff --git a/ext/xsl/tests/xslt011.phpt b/ext/xsl/tests/xslt011.phpt
index 64504ef8e4..5f7865279e 100644
--- a/ext/xsl/tests/xslt011.phpt
+++ b/ext/xsl/tests/xslt011.phpt
@@ -39,6 +39,13 @@ $dom = new domDocument();
function nonDomNode() {
return new foo();
}
+
+ class aClass {
+ static function aStaticFunction($id) {
+ return $id;
+ }
+ }
+
--EXPECTF--
Test 11: php:function Support
@@ -48,4 +55,5 @@ foobar - secondArg
foobar -
this is from an external DomDocument
from the Input Document
+static
diff --git a/ext/xsl/tests/xslt011.xsl b/ext/xsl/tests/xslt011.xsl
index 55609bbeaa..e1960e57d3 100644
--- a/ext/xsl/tests/xslt011.xsl
+++ b/ext/xsl/tests/xslt011.xsl
@@ -16,6 +16,10 @@
<xsl:value-of select="php:function('nodeSet',/doc)/i"/>
<xsl:text>
</xsl:text>
+<xsl:value-of select="php:function('aClass::aStaticFunction','static')"/>
+<xsl:text>
+</xsl:text>
+
<xsl:value-of select="php:function('nonDomNode')"/>
</xsl:template>
</xsl:stylesheet>