addOptions() public method

The existing options stored in the builder are preserved.
See also: addOption()
public addOptions ( array $options ) : static
$options array The options to add.
return static The current instance.
 public function testAddOptions()
 {
     $this->builder->addOption($option1 = new Option('option1'));
     $this->builder->addOptions(array($option2 = new Option('option2'), $option3 = new Option('option3')));
     $this->assertSame(array('option1' => $option1, 'option2' => $option2, 'option3' => $option3), $this->builder->getOptions());
 }