1--TEST--
2Check xsltprocessor::getparameter error handling
3--SKIPIF--
4<?php
5        if (!extension_loaded('xsl')) {
6                die("skip\n");
7        }
8?>
9--FILE--
10<?php
11include dirname(__FILE__) .'/prepare.inc';
12var_dump($proc->getParameter());
13var_dump($proc->getParameter(array(), array()));
14var_dump($proc->getParameter('', array()));
15--EXPECTF--
16Warning: XSLTProcessor::getParameter() expects exactly 2 parameters, 0 given in %s on line %d
17bool(false)
18
19Warning: XSLTProcessor::getParameter() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
20bool(false)
21
22Warning: XSLTProcessor::getParameter() expects parameter 2 to be %binary_string_optional%, array given in %s on line %d
23bool(false)
24--CREDITS--
25Christian Weiske, cweiske@php.net
26PHP Testfest Berlin 2009-05-09
27