xsltprocessor_removeParameter-wrongparams.phpt 733 B

1234567891011121314151617181920212223
  1. --TEST--
  2. Check xsltprocessor::removeParameter wrong parameter handling
  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->removeParameter();
  13. $proc->removeParameter(array(), array());
  14. $proc->removeParameter('', array());
  15. --EXPECTF--
  16. Warning: XSLTProcessor::removeParameter() expects exactly 2 parameters, 0 given in %s on line %d
  17. Warning: XSLTProcessor::removeParameter() expects parameter 1 to be string, array given in %s on line %d
  18. Warning: XSLTProcessor::removeParameter() expects parameter 2 to be string, array given in %s on line %d
  19. --CREDITS--
  20. Christian Weiske, cweiske@php.net
  21. PHP Testfest Berlin 2009-05-09