xsltprocessor_removeParameter.phpt 469 B

1234567891011121314151617181920
  1. --TEST--
  2. Check xsltprocessor::removeParameter functionality
  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. $proc->importStylesheet($xsl);
  13. $proc->setParameter('', 'key', 'value');
  14. $proc->removeParameter('', 'key');
  15. var_dump($proc->getParameter('', 'key'));
  16. --EXPECT--
  17. bool(false)
  18. --CREDITS--
  19. Christian Weiske, cweiske@php.net
  20. PHP Testfest Berlin 2009-05-09