3 * Ethna_Plugin_Handle_AddActionTest.php
5 * @author halt feits <halt.feits@gmail.com>
7 * @license http://www.opensource.org/licenses/bsd-license.php The BSD License
11 require_once ETHNA_BASE . '/class/Plugin/Handle/Ethna_Plugin_Handle_AddAction.php';
13 // {{{ Ethna_Plugin_Handle_AddActionTest
15 * add-action-test handler
17 * @author halt feits <halt.feits@gmail.com>
21 class Ethna_Plugin_Handle_AddActionTest extends Ethna_Plugin_Handle_AddAction
30 $r =& $this->_getopt(array('basedir=', 'skelfile='));
31 if (Ethna::isError($r)) {
34 list($opt_list, $arg_list) = $r;
37 $action_name = array_shift($arg_list);
38 if ($action_name == null) {
39 return Ethna::raiseError('action name isn\'t set.', 'usage');
41 $r =& Ethna_Controller::checkActionName($action_name);
42 if (Ethna::isError($r)) {
46 $ret =& $this->_perform('ActionTest', $action_name, $opt_list);
51 * get handler's description
55 function getDescription()
58 add new action test to project:
59 {$this->id} [-b|--basedir=dir] [-s|--skelfile=file] [action]
70 ethna {$this->id} [-b|--basedir=dir] [-s|--skelfile=file] [action]