1--TEST--
2Check xsltprocessor::registerPHPFunctions
3--EXTENSIONS--
4xsl
5--FILE--
6<?php
7include __DIR__ .'/prepare.inc';
8$phpfuncxsl = new domDocument();
9$phpfuncxsl->load(__DIR__."/phpfunc.xsl");
10if(!$phpfuncxsl) {
11  echo "Error while parsing the xsl document\n";
12  exit;
13}
14$proc->importStylesheet($phpfuncxsl);
15var_dump($proc->registerPHPFunctions());
16var_dump($proc->transformToXml($dom));
17
18//var_dump($proc->registerPHPFunctions(array()));
19//var_dump($proc->transformToXml($dom));
20?>
21--EXPECT--
22NULL
23string(18) "This Is An Example"
24--CREDITS--
25Christian Weiske, cweiske@php.net
26PHP Testfest Berlin 2009-05-09
27