Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
starting to update help menu in \console
- Loading branch information
Showing
5 changed files
with
123 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
libraries/lithium/tests/mocks/console/command/MockCommandHelp.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
/** | ||
* Lithium: the most rad php framework | ||
* | ||
* @copyright Copyright 2009, Union of RAD (http://union-of-rad.org) | ||
* @license http://opensource.org/licenses/bsd-license.php The BSD License | ||
*/ | ||
|
||
namespace lithium\tests\mocks\console\command; | ||
|
||
/** | ||
* This is a mock class for testing help | ||
* | ||
*/ | ||
class MockCommandHelp extends \lithium\console\Command { | ||
|
||
/** | ||
* This is a long param. | ||
* | ||
* @var string | ||
*/ | ||
public $long = null; | ||
|
||
/** | ||
* This is a short param. | ||
* | ||
* @var boolean | ||
*/ | ||
public $s = true; | ||
|
||
/** | ||
* Don't show this. | ||
* | ||
* @var array | ||
*/ | ||
protected $_classes = array( | ||
'response' => '\lithium\tests\mocks\console\MockResponse' | ||
); | ||
|
||
/** | ||
* This is the run command so don't show it. | ||
* | ||
* @return boolean | ||
*/ | ||
public function run() { | ||
return true; | ||
} | ||
|
||
/** | ||
* This is a task with required args. | ||
* | ||
* @param string $arg1 | ||
* @param string $arg2 | ||
* @return boolean | ||
*/ | ||
public function taskWithRequiredArgs($arg1, $arg2) { | ||
return true; | ||
} | ||
|
||
/** | ||
* This is a task with optional args. | ||
* | ||
* @param string $arg1 | ||
* @param string $arg2 | ||
* @return boolean | ||
*/ | ||
public function taskWithOptionalArgs($arg1 = null, $arg2 = nill) { | ||
return true; | ||
} | ||
} | ||
|
||
?> |