addCommandNames() public method

Adds command names to the built format.
public addCommandNames ( array $commandNames ) : static
$commandNames array The command names to add.
return static The current instance.
 public function testAddCommandNames()
 {
     $this->builder->addCommandName($cluster = new CommandName('cluster'));
     $this->builder->addCommandNames(array($server = new CommandName('server'), $add = new CommandName('add')));
     $this->assertSame(array($cluster, $server, $add), $this->builder->getCommandNames());
 }