Returns the command parameter from the command line
public getCommand ( ) : string | ||
return | string |
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()); }