xsltprocessor_getParameter-wrongparam.phpt 805 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Check xsltprocessor::getparameter error 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. var_dump($proc->getParameter());
  13. var_dump($proc->getParameter(array(), array()));
  14. var_dump($proc->getParameter('', array()));
  15. --EXPECTF--
  16. Warning: XSLTProcessor::getParameter() expects exactly 2 parameters, 0 given in %s on line %d
  17. bool(false)
  18. Warning: XSLTProcessor::getParameter() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
  19. bool(false)
  20. Warning: XSLTProcessor::getParameter() expects parameter 2 to be %binary_string_optional%, array given in %s on line %d
  21. bool(false)
  22. --CREDITS--
  23. Christian Weiske, cweiske@php.net
  24. PHP Testfest Berlin 2009-05-09