summaryrefslogtreecommitdiff
path: root/ext/xsl/tests/xsltprocessor_removeParameter.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2009-05-23 14:45:07 +0000
committerFelipe Pena <felipe@php.net>2009-05-23 14:45:07 +0000
commit5dfcef7ab4f3ff1629f9c6d2d2afedb24701a31a (patch)
treeafafb287c462ea4cb7fbd847af031bc044357e68 /ext/xsl/tests/xsltprocessor_removeParameter.phpt
parent424c0189918b67f3dc49bdae9702163494d92075 (diff)
downloadphp-git-5dfcef7ab4f3ff1629f9c6d2d2afedb24701a31a.tar.gz
- New tests (testfest BerlinUG)
Diffstat (limited to 'ext/xsl/tests/xsltprocessor_removeParameter.phpt')
-rw-r--r--ext/xsl/tests/xsltprocessor_removeParameter.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/xsl/tests/xsltprocessor_removeParameter.phpt b/ext/xsl/tests/xsltprocessor_removeParameter.phpt
new file mode 100644
index 0000000000..92be056985
--- /dev/null
+++ b/ext/xsl/tests/xsltprocessor_removeParameter.phpt
@@ -0,0 +1,20 @@
+--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