Annotation of embedaddon/php/ext/xsl/tests/xsltprocessor_removeParameter-wrongparams.phpt, revision 1.1.1.1
1.1 misho 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:
18: Warning: XSLTProcessor::removeParameter() expects parameter 1 to be %binary_string_optional%, array given in %s on line %d
19:
20: Warning: XSLTProcessor::removeParameter() expects parameter 2 to be %binary_string_optional%, array given in %s on line %d
21: --CREDITS--
22: Christian Weiske, cweiske@php.net
23: PHP Testfest Berlin 2009-05-09
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>