setArguments() public method

Setter function for injection constructor arguments. If an empty array is passed to this method, all (possibly) defined constructor arguments are removed from the configuration.
public setArguments ( array $arguments ) : void
$arguments array
return void
 /**
  * @test
  */
 public function passingAnEmptyArrayToSetArgumentsRemovesAllExistingArguments()
 {
     $someArguments = [1 => new Configuration\ConfigurationArgument(1, 'simple string'), 2 => new Configuration\ConfigurationArgument(2, 'another string')];
     $this->objectConfiguration->setArguments($someArguments);
     $this->assertEquals($someArguments, $this->objectConfiguration->getArguments(), 'The set arguments could not be retrieved again.');
     $this->objectConfiguration->setArguments([]);
     $this->assertEquals([], $this->objectConfiguration->getArguments(), 'The constructor arguments have not been cleared.');
 }