php-src/ext/xsl/tests/xsltprocessor_removeParameter.phpt

21 lines
469 B
Plaintext
Raw Normal View History

2009-05-23 14:45:07 +00:00
--TEST--
Check xsltprocessor::removeParameter functionality
--SKIPIF--
<?php
if (!extension_loaded('xsl')) {
die("skip\n");
}
?>
--FILE--
<?php
include dirname(__FILE__) .'/prepare.inc';
$proc->importStylesheet($xsl);
$proc->setParameter('', 'key', 'value');
$proc->removeParameter('', 'key');
var_dump($proc->getParameter('', 'key'));
--EXPECT--
bool(false)
--CREDITS--
Christian Weiske, cweiske@php.net
PHP Testfest Berlin 2009-05-09