Annotation of embedaddon/php/ext/xsl/tests/xsltprocessor_registerPHPFunctions-allfuncs.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Check xsltprocessor::registerPHPFunctions
3: --SKIPIF--
4: <?php
5: if (!extension_loaded('xsl')) {
6: die("skip\n");
7: }
8: ?>
9: --FILE--
10: <?php
11: include dirname(__FILE__) .'/prepare.inc';
12: $phpfuncxsl = new domDocument();
13: $phpfuncxsl->load(dirname(__FILE__)."/phpfunc.xsl");
14: if(!$phpfuncxsl) {
15: echo "Error while parsing the xsl document\n";
16: exit;
17: }
18: $proc->importStylesheet($phpfuncxsl);
19: var_dump($proc->registerPHPFunctions());
20: var_dump($proc->transformToXml($dom));
21:
22: //var_dump($proc->registerPHPFunctions(array()));
23: //var_dump($proc->transformToXml($dom));
24:
25: --EXPECTF--
26: NULL
27: string(18) "This Is An Example"
28: --CREDITS--
29: Christian Weiske, cweiske@php.net
30: PHP Testfest Berlin 2009-05-09
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>