getCommand() public method

Returns the command parameter from the command line
public getCommand ( ) : string
return string
Example #1
0
 public function testHelpCommand()
 {
     $argv = array('./dbpatch.php', 'help', 'update');
     $console = new DbPatch_Core_Console($argv);
     $this->assertEquals('help', $console->getCommand());
     $this->assertEquals(array('update' => 'update'), $console->getOptions());
 }