From: Jan Schneider Date: Thu, 18 Mar 2010 18:38:53 +0000 (+0100) Subject: Ah, there is the InterceptinParser. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b7a9983c84c4d3b3212de4bb91d8df74886544d;p=horde.git Ah, there is the InterceptinParser. --- diff --git a/framework/Argv/test/Horde/Argv/CallbackVarArgsTest.php b/framework/Argv/test/Horde/Argv/CallbackVarArgsTest.php index 0a0a07475..9caf2b8d5 100644 --- a/framework/Argv/test/Horde/Argv/CallbackVarArgsTest.php +++ b/framework/Argv/test/Horde/Argv/CallbackVarArgsTest.php @@ -1,6 +1,7 @@ @@ -20,8 +21,8 @@ class Horde_Argv_CallbackVarArgsTest extends Horde_Argv_TestCase $this->makeOption('-b', array('action' => 'store_true', 'dest' => 'b')), $this->makeOption('-c', '--callback', array('action' => 'callback', 'callback' => array($this, 'variableArgs'), 'dest' => 'c')), ); - $this->parser = new Horde_Argv_Parser(array('usage' => Horde_Argv_Option::SUPPRESS_USAGE, - 'optionList' => $options)); + $this->parser = new Horde_Argv_InterceptingParser(array('usage' => Horde_Argv_Option::SUPPRESS_USAGE, + 'optionList' => $options)); } public function variableArgs($option, $opt, $value, $parser) diff --git a/framework/Argv/test/Horde/Argv/InterceptingParser.php b/framework/Argv/test/Horde/Argv/InterceptingParser.php index 2878d19fa..e089c1ad3 100644 --- a/framework/Argv/test/Horde/Argv/InterceptingParser.php +++ b/framework/Argv/test/Horde/Argv/InterceptingParser.php @@ -1,4 +1,7 @@ * @author Mike Naberezny