/** * get the option parser for the test suite. * * @return void */ public function getOptionParser() { $parser = parent::getOptionParser(); $parser->description(array( __d('cake_console', 'The CakePHP Testsuite allows you to run test cases from the command line'), __d('cake_console', '<warning>This shell is for backwards-compatibility only</warning>'), __d('cake_console', 'use the test shell instead') )); return $parser; }
/** * Overload parent to get control under $argv * * @param string $command * @param array $argv */ public function runCommand($command, $argv) { $args = $this->parseArgsIDE($argv); parent::runCommand($args[0], $args); }