Any existing arguments are removed when this method is called.
public setArguments ( array $arguments ) : static | ||
$arguments | array | The arguments of the built format. |
리턴 | static | The current instance. |
public function testSetArguments() { $this->builder->addArgument($argument1 = new Argument('argument1')); $this->builder->setArguments(array($argument2 = new Argument('argument2'), $argument3 = new Argument('argument3'))); $this->assertSame(array('argument2' => $argument2, 'argument3' => $argument3), $this->builder->getArguments()); }