Webmozart\Console\Adapter\ArgsInput::getArguments PHP Method

getArguments() public method

public getArguments ( )
    public function getArguments()
    {
        return $this->args ? $this->args->getArguments() : array();
    }

Usage Example

Exemplo n.º 1
0
 public function testGetArguments()
 {
     $inputArgs = new ArgsInput($this->rawArgs, $this->args);
     $inputNoArgs = new ArgsInput($this->rawArgs);
     $this->args->setArguments(array('argument1' => 'value1'));
     $this->assertSame(array('argument1' => 'value1', 'argument2' => 'default'), $inputArgs->getArguments());
     $this->assertSame(array(), $inputNoArgs->getArguments());
 }