xsltprocessor_getParameter.phpt 347 B

12345678910111213141516
  1. --TEST--
  2. Check xsltprocessor::getparameter functionality
  3. --EXTENSIONS--
  4. xsl
  5. --FILE--
  6. <?php
  7. include __DIR__ .'/prepare.inc';
  8. $proc->importStylesheet($xsl);
  9. $proc->setParameter('', 'key', 'value');
  10. var_dump($proc->getParameter('', 'key'));
  11. ?>
  12. --EXPECT--
  13. string(5) "value"
  14. --CREDITS--
  15. Christian Weiske, cweiske@php.net
  16. PHP Testfest Berlin 2009-05-09