diff options
author | Christian Stocker <chregu@php.net> | 2004-04-20 09:24:24 +0000 |
---|---|---|
committer | Christian Stocker <chregu@php.net> | 2004-04-20 09:24:24 +0000 |
commit | 65bc57a81f46eb7bf7aaab1b257805876bd0bebf (patch) | |
tree | f1f2e3984205e5dcce354cbb78c777013878490c /ext/xsl/tests | |
parent | e9c3ac04f59fbc26b9f4d5ec41c3920d853eb3f8 (diff) | |
download | php-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.phpt | 8 | ||||
-rw-r--r-- | ext/xsl/tests/xslt011.xsl | 4 |
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> |