mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding a ghetto option parser to the testsuite shell. Still need to add in all the options from phpunit, and the other cake options.
This commit is contained in:
parent
2af684cbec
commit
3585620470
1 changed files with 20 additions and 0 deletions
|
@ -28,6 +28,26 @@ class TestSuiteShell extends Shell {
|
|||
*/
|
||||
protected $_dispatcher = null;
|
||||
|
||||
/**
|
||||
* get the option parser for the test suite.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function getOptionParser() {
|
||||
$parser = new ConsoleOptionParser($this->name, false);
|
||||
$parser->description(array(
|
||||
'The CakPHP Testsuite allows you to run test cases from the command line',
|
||||
'If run with no command line arguments, a list of available core test cases will be shown'
|
||||
))->addArgument('category', array(
|
||||
'help' => __('app, core or name of a plugin.'),
|
||||
'required' => true
|
||||
))->addArgument('file', array(
|
||||
'help' => __('file name with folder prefix and without the test.php suffix.'),
|
||||
'required' => true,
|
||||
));
|
||||
return $parser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialization method installs Simpletest and loads all plugins
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue